Monday, October 19, 2020

display the double of the given number if it is less than 50 in c

 #include <stdio.h>

int main()

{

    int n;

    printf("Enter a number:");

    scanf("%d", &n);

    if(n<50)

    {

        printf("Number = %d", n*2);

    }

    return 0;

}

No comments:

Post a Comment

Learning to Appreciate the Right People ❤️ | A Life Lesson About Gratitude, Friendship & Kindness

  https://www.youtube.com/watch?v=FdWsa0QwO2w Hi, namaste camo. So uh recently I have been experiencing this and it has changed a really uh ...