fork download
  1. #include<stdio.h>
  2.  
  3. int main() {
  4. int base, height;
  5. float area;
  6.  
  7. printf("\nEnter the base of Right Angle Triangle : ");
  8. scanf("%d", &base);
  9.  
  10. printf("\nEnter the height of Right Angle Triangle : ");
  11. scanf("%d", &height);
  12.  
  13. area = 0.5 * base * height;
  14. rintf("\nArea of Right Angle Triangle : %f", area);
  15.  
  16. return (0);
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
5
3
compilation info
prog.c: In function ‘main’:
prog.c:14:1: warning: implicit declaration of function ‘rintf’ [-Wimplicit-function-declaration]
 rintf("\nArea of Right Angle Triangle : %f", area);
 ^~~~~
prog.c:14:1: warning: incompatible implicit declaration of built-in function ‘rintf’
prog.c:14:1: note: include ‘<math.h>’ or provide a declaration of ‘rintf’
prog.c:14:7: error: incompatible type for argument 1 of ‘rintf’
 rintf("\nArea of Right Angle Triangle : %f", area);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:14:7: note: expected ‘float’ but argument is of type ‘char *’
prog.c:14:1: error: too many arguments to function ‘rintf’
 rintf("\nArea of Right Angle Triangle : %f", area);
 ^~~~~
stdout
Standard output is empty