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

create a num table in a new file in c

write a programme to compare time stamp in c

write a struct programme to keep bank details in c