Пример #1
0
int main(void)
{
	assert(triangleN(7) == 28);
	assert(factors(28) == 6);

	std::cout << problem12() << std::endl;
}
Пример #2
0
/**
* Acts as the display function for the window. 
*/
static void RenderSceneCB() {
    // Clear the color and depth buffers
	glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
	glClearColor(255,255,255,1);

	// TODO
	// Your rendering code
	problem12();
	problem12();
	problem13();
	problem14();
	problem15();
	problem16();
	problem17();
	problem18();

	// Flush all drawing commands and swapbuffers
	glutSwapBuffers();
} // end RenderSceneCB
Пример #3
0
int main(void) {
	int result = problem12();
	printf("%d\n", result);
	return 0;
}