print numbers with DO WHILE loop in C

#include<stdio.h>

int main()

{

  int i=0;

  int n;

  

  printf("Enter the value of n\n");

  scanf("%d", &n);

  

  do{

  printf("The number is %d\n",i);

  i++;

  } while(i<n);

return 0;

} 

Comments

Popular posts from this blog

Make a number game in C

Reverse printing in c

structure formate in c