#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%d %d %f\n",a+b+c,a*b*c,(a+b+c)/3) return 0; } /* Main.c: In function 'main': Main.c:6:18: warning: format '%f' expects argument of type 'double', but argument 4 has type 'int' [-Wformat=] printf("%d %d %f\n",a+b+c,a*b*c,(a+b+c)/3) ~^ ~~~~~~~~~ %d Main.c:6:45: error: expected ';' before 'return' printf("%d %d %f\n",a+b+c,a*b*c,(a+b+c)/3) ^ ; return 0; ~~~~~~ */ |
Double click to view unformatted code.