Skip to content

Instantly share code, notes, and snippets.

@mkrat123
Created October 29, 2017 04:21
Show Gist options
  • Save mkrat123/29e34e3f7e02dc743bea7760aa89afc7 to your computer and use it in GitHub Desktop.
Save mkrat123/29e34e3f7e02dc743bea7760aa89afc7 to your computer and use it in GitHub Desktop.
#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