[ create a new paste ] login | about

Link: http://codepad.org/tDwm9aJU    [ raw code | output | fork ]

C, pasted on Sep 6:
#include<stdio.h>
#include<conio.h>

int main()
{
	float a, b, c, max;
	printf("\nNhap a: ");
	scanf("%f", &a);

	printf("\nNhap b: ");
	scanf("%f", &b);

	printf("\nNhap c: ");
	scanf("%f", &c);

	max = a;
	if(max < b)
		max = b;
	if(max < c)
		max = c;
	printf("\nSo lon nhat trong 3 so %10.3f, %10.3f, %10.3f, la: %10.3f", a, b, c, max);


	getch();
	return 0;

}


Output:
1
Line 17: error: conio.h: No such file or directory


Create a new paste based on this one


Comments: