Guest User

Untitled

a guest
Mar 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i;
  5. for (i=1; i<=100; i++)
  6. {
  7. if (i%3 == 0)
  8. printf("\tmulof3\t");
  9. else if (i%5 == 0)
  10. {
  11. if (i%3 == 0)
  12. printf("\tmulof3and5\t");
  13. else
  14. printf("\tmulof5\t");
  15. }
  16. else
  17. printf("\t%d\t", i);
  18. }
  19. }
Add Comment
Please, Sign In to add comment