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

All Quotes

Quote 55: Your brand grows through authentic achievements. Quote 54: Personal branding is clarity, consistency, and credibility. Quote 53: E...