Advertisement
schreiberstein

Mr. Schreiberstein's casino in C

Jul 31st, 2011
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.    
  5.     int bet;
  6.     int box;
  7.     int win;
  8.     char yn;
  9.    
  10.     printf("\n Welcome to Mr. Schreiberstein's Casino!");
  11.     printf("\n How much is your bet? US-Dollar : ");
  12.     scanf("%i", &bet);
  13.     printf("\n Choose your Box (0-49) : ");
  14.     scanf("%i", &box);
  15.     printf("\n \n Confirm your indications first : You bet %i$ for box %i. Is that right? Enter (y) for yes and (n) for no. : " , bet, box);
  16.     scanf("%c", &yn);
  17.     printf("\n You wrote : %c ", yn);
  18.    
  19.    
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement