Advertisement
zfhridoy47

loop_problem_1

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