Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Program to display numbers using do while loop

Posted By: Zoe Hughes     Category: C Programming     Views: 9045

Write a program to display numbers using do while loop.

Code for Program to display numbers using do while loop in C Programming

#include <stdio.h>
main()
{
int i,n;
scanf("%d",&n); 
i = 0;
do      
{
printf("the numbers are %d \n",i);
i = i +1;
}while( i<n)  ;

}
  
Share: 


Didn't find what you were looking for? Find more on Program to display numbers using do while loop Or get search suggestion and latest updates.

Zoe Hughes
Zoe Hughes author of Program to display numbers using do while loop is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!