Skip to content

Instantly share code, notes, and snippets.

@parvezmrobin
Last active February 23, 2016 17:31
Show Gist options
  • Save parvezmrobin/ea65599914f87f38d69e to your computer and use it in GitHub Desktop.
Save parvezmrobin/ea65599914f87f38d69e to your computer and use it in GitHub Desktop.
#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