Saturday, March 20, 2021

 #include<stdio.h>

void display1(int n);
void display2(int n);
int main()
{
    int num
    ;
    display1(10);
    display2(10);

    return 0;
}
void display1(int n)
{
    if (n==0)
    {
        return;
    }
    printf("%d \t" , n);
    
    display1(n-1);
    printf("\n");
}
void display2(int n )
{
    if (n==0)
    {
        return;
    }
    display2(n-1);
    printf("%d\t" , n);
   
}

No comments:

HackCache ’26: A 48-Hour Online Hackathon Open to Every Student

  Hackathons are often associated with computer science students, experienced developers, and teams that already know exactly what they are...

Popular Posts