Posted by: Robert Frost October 17, 2004
C Program help
Login in to Rate this Post:     0       ?        
Your fren is right. The problem I have here is with the coding and also I don't think you have to go that far in saying if its greater then or less than. because, lets say the number the user guessed is 9, if the number given by the computer is 9, he will hit 'y' for Yes, and the program will terminate if the number is incorrect say 2, he will hit 'n' for No, and the program will loop back to providing user with another number. And this will continue until the computer finds the right number that is 9. But in this program, if 9 is the number, that should find it in second time since the program continues to give a number start from 10 and then going down. So when the computer gives 10 as the first number, the user will hit 'n' and then the next number will be 9. so on and so forth. hyaaa tauko dukyo.....
Read Full Discussion Thread for this article