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:
Post a Comment