Program to print your name 10 time through Recursion

#include<iostream.h>
#include<conio.h>
void myfuntion(int);
void main()
{
clrscr();
myfuntion(1);
}
void myfuntion(int counter)
{
if(counter==11)
return;
else
{
cout<<counter<<"  Mian Muhammad Usman \n";
myfuntion(++counter);
return;
}
}

0 comments:

Post a Comment

My Instagram