Search This Blog

Thursday 28 January 2016

Writa a C++ program to input an integer value from the keyboard and display the message "Good Morning" that many times on screen.

#include<iostream>

using namespace std;

int main()
{
int n;
cout<<"Enter Num:";
cin>>n;
int i;
for(i=0;i<n;i++)
{
cout<<"Good Morning!"<<endl;
}
return 0;
}

No comments:

Post a Comment