View Code of Problem 47

#include <stdio.h>
void main()
{
	int a,b,c;
  	int sum,ji;
  double ave;
  scanf("%d %d %d",&a,&b,&c);
  printf("%d %d %.2f",sum,ji,ave)

}
/*
Main.c:2:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^
Main.c: In function 'main':
Main.c:10:1: error: expected ';' before '}' token
 }
 ^
*/

Double click to view unformatted code.


Back to problem 47