Friday 2 May 2014

Write a program that prints digit form 1 to 10 using (while loop and do-while loop).

Leave a Comment


write a program that prints digit form 1 to 10 using (while loop and do-while loop).
 
#include <iostream>                
#include <conio.h>
using namespace std;
int main()
{

int i=1;
do
{
cout<<"\n"<<i;
i++;
}
while (i<=10);
getch();
}






 

If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: