Advertisement
mustahidhasan

print all number from 0 to n

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