aiNayan

4(i)

Nov 6th, 2020
1,844
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. int main()
  3. {
  4.     int n, i;
  5.     printf("Enter the positive number:");
  6.     scanf("%d", &n);
  7.     for (i = 1; i <= n; i++)
  8.         printf("%d\n", i);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment