Created
October 29, 2017 04:21
-
-
Save mkrat123/29e34e3f7e02dc743bea7760aa89afc7 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> | |
#include<string.h> | |
#include<math.h> | |
#include<stdlib.h> | |
int main(int argc,char *argv[]){ | |
int base=atoi(argv[1]),height=atoi(argv[2]); | |
float ans= 0.5 * base * height; | |
printf("%0.2f\n",ans); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment