WAP of printing numbers from 1-100 by just skipping the divisible of 3. (Use Jump and loop statement)

Answer

int main()

{

for(int i=0;i<100;i++)

{

if(i%3==0){

continue;

}

cout<<i<<endl;

}

 

Here endl means the end of the line.

 

 

All c++ Questions

Ask your interview questions on c

Write Your comment or Questions if you want the answers on c from c Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---