1 solutions

  • 0
    @ 2025-3-3 16:24:10

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int n;
    		cin>>n;
    		for(int i = 100;i <= n;i++){
    			if((i%5==0||i%6==0)&&i%30!=0) cout<<i<<" ";
    		}
    	
    	return 0;
    }
    
    
    • 1

    Information

    ID
    10031
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By