I want to find the maximum value of two numbers, and print it. I want to print all three numbers. I am using the following code.
#include<stdio.h>
#include<conio.h>
main()
{
//clrscr();
int a,b,c;
printf("insert two numbers:");
scanf("%d%d", &a, &b);
c = (a>b) ? a : b;
printf("\nmaximum of %d",a," and %d",b," is = %d" c);
getch();
}
However, I receive two syntax errors (Please find the attached figure). Could anybody help me out with it?

'\n'at the end not the begining because it might not print anything unless another'\n'occurs or you explicitly callfflush(). Also, don't learn conio.h if you can andmain()must returnint.