View Code of Problem 47

1.#include<stdio.h>
2. 
3.main()
4.{ int a,b,c;
5.	scanf("%d%d%d",&a,&b,&c);
6.	printf("%d %d %.2f",a+b+c,a*b*c,(a+b+c)/3.0);
7.return 0;
8.}

/*
Main.c:1:1: error: expected identifier or '(' before numeric constant
 1.#include<stdio.h>
 ^
Main.c:1:3: error: stray '#' in program
 1.#include<stdio.h>
   ^
Main.c:3:1: error: invalid suffix "main" on floating constant
 3.main()
 ^
Main.c:7:1: error: invalid suffix "return" on floating constant
 7.return 0;
 ^
*/

Double click to view unformatted code.


Back to problem 47