#include <stdio.h> 2.int main() 3.{ 4. double a,b,c; 5. scanf("%lf %lf %lf",&a,&b,&c); 6. printf("%.lf %.lf %.2lf",a+b+c,a*b*c,(a+b+c)/3.0); 7. return 0; 8.} /* Main.c:2:1: error: invalid suffix "int" on floating constant 2.int main() ^ Main.c:2:1: error: expected identifier or '(' before numeric constant */ |
Double click to view unformatted code.