View Code of Problem 47

#include<stdio.h>
int main()
{
  int a,b,c,d,e;
  float f;
  scanf("%d%d%d",&a,&b,&c);
  d=a+b+c;
  e=a*b*c;
  f=(a+b+c)/3;
  printf("%d%d%.2f",d,e,f);
  return 0;
}
/*
Main.c: In function 'main':
Main.c:6:3: error: stray '\357' in program
   scanf("%d%d%d",&a,&b,&c);
   ^
Main.c:6:3: error: stray '\274' in program
Main.c:6:3: error: stray '\214' in program
Main.c:6:3: error: stray '\357' in program
Main.c:6:3: error: stray '\274' in program
Main.c:6:3: error: stray '\214' in program
Main.c:6:23: error: invalid operands to binary & (have 'int *' and 'int')
   scanf("%d%d%d",&a,&b,&c);
                       ^
*/

Double click to view unformatted code.


Back to problem 47