|
#include <iostream>
using namespace std;
int print (int a)
{
if(a<=1)
{
return 1;
}
return print (a-1);
}
int main(int argc, char *argv[])
{
int number;
int result;
string name;
cout<<"---------------------------"<<endl;
cout<<"insert your name :";
cin>>name;
cout<<"---------------------------"<<endl;
cout<<"insert a number =";
cin>>number;
result =print(number);
if (result <=number)
{
for(int i=1;i<=number;a++)
{
cout<<name;
cout<<endl;
}
}
system("PAUSE");
return EXIT_SUCCESS;
}
0 comments:
Post a Comment