[ create a new paste ] login | about

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

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

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

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

	printf("\nNhap c: ");
	scanf("%f", &c);
 
	if(a < 0)
	 a = -a;
	if(b < 0)
	 b = -b;
	if(c < 0)
	 c = -c;

	 printf("\na = %f", a);
	 printf("\nb = %f", b);
	 printf("\nc = %f", c);

	getch();
	return 0;
}


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


Create a new paste based on this one


Comments: