Tuesday, May 30, 2017

While Loop Show

#include<iostream>
using namespace std;
int main()
{
int n,i;
cout <<"Enter Number: ";
cin>>n;
i=1;
while(i<=n)
{

cout <<"Show: "<<i<<endl;
i++;
}
return 0;
}

No comments:

Post a Comment