Print number from 1 to 100, skip nos. divisible by 3
ap3b
#include<iostream>
using namespace std;
//Print number from 1 to 100, skip nos. divisible by 3.
int main(){
for(int i=0; i<=100; i++){
if(i%3==0){
continue;
}
cout<<i<<endl;
}
return 0;
}
Comments
Post a Comment