Advertisement
touhid_xml

Guess the number game in C

Sep 24th, 2016
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int number;
  5. printf("Guess the correct number...\n");
  6.  
  7. while(scanf("%d",&number)){
  8. if(number == 100 || number == 102 ){
  9. printf("Congratulations!!! You guessed the correct number.\n");
  10.     break;
  11. }
  12. }
  13.  
  14. getche();
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement