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 a Mother’s Passion to Real Impact: 20+ Years of Quiet Consistency

 my mom has been doing research on every products since more than 20 years along with managing family of around 20 members and upbringing me...