#include <stdio.h> int main(){ int a,b,c,h,c; float p; scanf("%d %d %d",&a,&b,&c); c=a*b*c; h=a+b+c; p=h/3.0; printf("%d %d %.2f",h,c,p); } /* Main.c: In function 'main': Main.c:3:15: error: redeclaration of 'c' with no linkage int a,b,c,h,c; ^ Main.c:3:11: note: previous declaration of 'c' was here int a,b,c,h,c; ^ */ |
Double click to view unformatted code.