1) SEE , wat i feel is that you can have a count after u answer for the question u ask using printf statement... that count must be initilized to 0 which will act as a question number. . 2) And since u are a beginner in C , iam suggesting u to make use of two arrays where u can have one for right answers and other for wrong answers.... 3) In the array of right answers where u are checking ur answer == x+x , inside that statement assign the count to the right answerd array as: right[i]=count; 4) if ur if becomes false , in else same u must do as above but that should be : wrong[j]=count; after this u would get ur desired output....... any doubts , mail me :softvig88@xxxxxxxxx thank u -- View this message in context: http://old.nabble.com/C-program-help-tp25522429p26951151.html Sent from the linux-c-programming mailing list archive at Nabble.com. -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html