#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,n;
cout<<"\n How many times you want to display : ";
cin>>n;
for(i=1;i<=n;++i)
cout<<"\n Welcome to C++";
getch();
}
Output

#include<conio.h>
void main()
{
clrscr();
int i,n;
cout<<"\n How many times you want to display : ";
cin>>n;
for(i=1;i<=n;++i)
cout<<"\n Welcome to C++";
getch();
}
Output
No comments:
Post a Comment