fork download
  1. #include<stdio.h>
  2.  
  3. int main (){
  4.  
  5. printf("\n\nEnter the size of all sides of the triangle : ");
  6. scanf("%f%f%f",&a,&b,&c);
  7.  
  8. perimeter = a + b + c;
  9. printf("Perimeter of triangle is: %.3f",perimeter);
  10.  
  11. return (0);
  12.  
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:6:18: error: 'a' undeclared (first use in this function)
  scanf("%f%f%f",&a,&b,&c);
                  ^
prog.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:21: error: 'b' undeclared (first use in this function)
  scanf("%f%f%f",&a,&b,&c);
                     ^
prog.c:6:24: error: 'c' undeclared (first use in this function)
  scanf("%f%f%f",&a,&b,&c);
                        ^
prog.c:8:2: error: 'perimeter' undeclared (first use in this function)
  perimeter = a + b + c;
  ^
stdout
Standard output is empty