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++;
    }
}

Comments

Popular posts from this blog

Umbrella activities in Software Engineering

Operating System | Best Definition of Opetating System