fork download
  1. // area of triangle
  2. // writen by : sammo
  3. #include <stdio.h>
  4. int main()
  5. {
  6. int length, breath;
  7. scanf("%d%d",&length,&breath);
  8. printf("Area is %lf\n",(double)0.5 * length * breath);
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5288KB
stdin
3 4
stdout
Area is 6.000000