View Code of Problem 68

#include <stdio.h>
int max(int a,int b)
{
  return (a>b?a:b)
}
int main()
{
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  a=max(a,b);
  printf("%d\n",max(a,c));
  return 0;
}
/*
Main.c: In function 'max':
Main.c:5:1: error: expected ';' before '}' token
 }
 ^
*/

Double click to view unformatted code.


Back to problem 68