Advertisement
Nabil-Ahmed

Untitled

Jul 4th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. // print natural numbers in reverse use for loop//
  2. #include<stdio.h>
  3. int main()
  4. {
  5.  
  6. int n,i;
  7.  
  8. scanf("%d",&n);
  9.  
  10. for (i=1;i<=n;i++)
  11. {
  12.     printf("%d",n+1-i);
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement