[ create a new paste ] login | about

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

C, pasted on Apr 25:
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int x, n;
	printf("Enter n : ");scanf("%d",&n);
	for(x = 0; x < 10; x++)
	{
		if(x*x*x - x*x == n)
			break;
	}
	if(9 < x)
		printf("Dly dannog n net otveta v odoznachnih chislah\n");
	else
	printf
	(
		"x = %d\n"
		"x*x*x - x*x = %d\n",
		 x,
		x*x*x - x*x
	);
	system("pause");
	return 0;
}


Output:
1
Disallowed system call: SYS_fork


Create a new paste based on this one


Comments: