Sunday, November 1, 2020

C program to display 1 to the given number in descending order

 #include <stdio.h>

int main()

{

    int i,n;

    printf("Enter a number:");

    scanf("%d",&n);

    for(i=n;i>=1;i--)

    {

        printf("%d",i);

    }

    return 0;

}

No comments:

Post a Comment

The Affirmations That Helped Me Overcome My Fear ❤️ | My CSM Journey

https://youtube.com/shorts/93kVkwscTpM   Hi, so I just want to share my recent experience uh through the affirmations that has helped me thr...