Posts

Showing posts with the label Text and show on run time

While loop | Multiple text enter and then show | Text and show on runtime | Program | Source code

# include <iostream> using namespace std; void main () {     int n=1;     char name [10];// you can enter only 10 characters as a name             while (n<=10)     {     cout<<n<<"-Please enter your name: ";     cin>>name;     cout<<"\tWelcome "<<name<<endl<<endl;                 n++;     } }