Miti059

6.Natural number

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