Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // print natural numbers in reverse using while loop//
- #include<stdio.h>
- int main()
- {
- int n,i=1;
- scanf("%d",&n);
- i=n;
- while (i>=1){
- printf("%d",i);
- i--;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement