Last active
February 23, 2016 17:31
-
-
Save parvezmrobin/ea65599914f87f38d69e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
int n; | |
scanf("%d", &n); | |
if(n<0){ | |
n = n * -1; | |
} | |
printf("Absolute value is %d", n); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment