Title : Natural Number Without using Loop
Program:
#include<iostream>
using namespace std;
int main()
{
int n,c;
cout<<"Entert the value of A:";
cin>>n;
c=1;
boss:
cout<<c<<"\t";
c++;
cout<<" \n";
if(c<n)
goto boss;
return 0;
}
No comments:
Post a Comment