C++ Program to print your name 10 times using while loop.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a=1;
while(a<=10)
{
a++;
cout<<"Sahaj"<<endl;
}
getch();
}
Learn How to write computer programs, how to Write a program to - print, swap, sort, reverse, find, calculate, implement, quicksort, evaluate, enter elements, extract, exchange, transverse, transpose a matrix, traverse, take input, HTML, Python, C, C++, Java, HTML5.