Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by chau ( 5 years ago )
#include <stdio.h>
#include <conio.h>
int main()
{
	int a, b, c, d;
	scanf("%d,%d,%d,%d", &a, &b, &c, &d);
	int max = a;
	 if(a > max)
	{
		max = a;
	}
	if(b > max)
	{
		max = b;
	}
	if(c > max)
	{
		max = c;
	}
	if(d > max)
	{
		max = d;
	}
	
	
	printf("%d", max);
	getch();
	return 0;
}

 

Revise this Paste

Your Name: Code Language: