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

Samsung Galaxy S24 Motion Photo ❤️ | Turning Everyday Moments into Beautiful Memories

  https://www.youtube.com/watch?v=MZQ2V_Eqa7w So, this video is dedicated to let say Samsung since I am using S24. And you know the main thi...