al__nasim

display 1000 to 1 in 5 column

Apr 7th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. //display 1000 to 1 in 5 column
  2. #include<stdio.h>
  3. int main()
  4. {
  5. int i;
  6. for(i = 1000; i>0;i--)
  7. {
  8. printf("%d\t",i);
  9. if(i % 5 == 1)
  10. printf("\n");
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment