Search This Blog

Saturday, 1 January 2022

Title : Natural Number Without using Loop

 

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

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts