Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i;
- for (i=1; i<=100; i++)
- {
- if (i%3 == 0)
- printf("\tmulof3\t");
- else if (i%5 == 0)
- {
- if (i%3 == 0)
- printf("\tmulof3and5\t");
- else
- printf("\tmulof5\t");
- }
- else
- printf("\t%d\t", i);
- }
- }
Add Comment
Please, Sign In to add comment