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

Understand Them First ❤️ | A Grandmother’s Journey, Emotions & the Power of Empathy ✨

  https://www.youtube.com/watch?v=EUm5_llWHBQ Hi, namaste Kamj. So, uh I just have been going through something in my life that I wanted to ...