Social Icons

Saturday, 15 February 2014

Program to print Welcome to C++ for number of times

#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

No comments:

Post a Comment