Sunday, October 25, 2020

C program to display the negative of the given positive number and vice-versa

 #include <stdio.h>

int main() {

    int n;

    printf("Enter a number:");

    scanf("%d",&n);

    n=-n;

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

}

No comments:

Post a Comment

From Lifting Light Weights to Building Confidence 💪 | My Fitness Journey ✨

  https://www.youtube.com/watch?v=nyX7g3GRGDw Hi, namaste Kam. So I had to make this video about how I joined the gym and it did made a grea...