Quote (jriehle87 @ Oct 11 2012 10:11pm)
Sorry about double post
Code
#include <stdafx.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int _tmain(int argc, _TCHAR* argv[])
{
num1 = rand % 10
num2 = rand % 10
printf( "what is $num1 + $num2?" )
answer = getResponse()
if answer is not num1 * num2:
printf ("wrong");
loop
printf( "good job" );
return 0;
}
Still failing after this. I am getting showing incorrect input variable?
you have not declared num1 and num2 or answer. that is not the structure for printf.
that getResponce function does not exist
the if statement isnt even syntaxially correct
niether is that loop.
do you even attend class or what?