[ create a new paste ] login | about

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

C, pasted on Dec 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <math.h>

int main()
{//begin
	int a,b,c,d,e;
	printf("b? ");
	scanf("%d",&b);
	printf("c? ");
	scanf("%d",&c);
	printf("d? ");
	scanf("%d",&d);
	printf("e? ");
	scanf("%d",&e);
	a=sqrt(b)+(c-d)*e;
	printf("%d = sqrt(%d) + (%d - %d) * %d\n",a,b,c,d,e);
	return 0;
}//end


Output:
1
b? c? d? e? -2147483648 = sqrt(-7342344) + (0 - 134514144) * 134513710


Create a new paste based on this one


Comments: