<mosaic.cnfolio.com>
PROGRAM
  1. /*PSEUDO CODE
  2. START 
  3.    Obtain 8 inputs represeanting 4 bets, where 4 bet numbers and 4 bet values
  4.    IF number of bets less than 4 (less than 8 inputs)
  5.      THEN
  6.       Display Error measage missing values
  7.    END IF   
  8.    IF bet number less than 0 or large than 36
  9.      THEN
  10.        Display Error mesage you should bet on a number between 0-36 or 00
  11.    END IF
  12.    IF bet value equal or less than 0
  13.      THEN
  14.             Display Error meseage you should entered a positive bet value
  15.    END IF   
  16.    IF number of bets equal to 4
  17.      THEN
  18.        Spin the wheel and generate random number between 0 to 36 and 00
  19.        Display 4 bets numbers and 4 bets value that the user bet on
  20.        Display winnning number
  21.        IF winning number equal to bet number
  22.          THEN
  23.            Display congrats you won
  24.            Display all the 4 entered bets
  25.             Display the winning bet
  26.             Add 4 bet values and Display total bet values
  27.             Multiplay the winning bet value by 35 and display the profit
  28.             Add the winning bet value to the profit and display total profit
  29.          Add the 3 not winning bets values and display total loss
  30.          ELSE
  31.             Diplay Sorry! You loss
  32.            Display all the 4 enetered bets
  33.             Add 4 bet values and Display total bet values
  34.             Display Winning number dose not equal to the numbers you bet on
  35.             Subtract bet values and display total loss
  36.             Display total profit equal to 0
  37.         END IF
  38.    END IF
  39. END
  40. */
  41.  
  42.  
  43.  
  44. #include <stdio.h>
  45. #include <time.h> 
  46. #include <stdlib.h>
  47. #include <string.h>               /* String library*/
  48.  
  49. int main (void)
  50. {
  51.  
  52. int n;                              /*Counting variable for numbers between 0-36*/
  53. int m;                              /*Variable */
  54. int WinNumber;        /*Random number given by the computer*/
  55. int Mon1;
  56. int Mon2;
  57. int Mon3;
  58. int Mon4;                           /*Money amount */
  59. int Profit;         /*Total Money Profit */
  60. int LosAmount;        /*Total Money Loss */
  61. int Bet1=37;
  62. int Bet2=37;                        /*If the user intered 37 convert it 00 if not just read the integer number */
  63. int Bet3=37;
  64. int Bet4=37;                        /*Bet number between 0-37, where 37 is 00*/
  65. char Beta[2];
  66. char Betb[2];
  67. char Betc[2];
  68. char Betd[2];                     /*Char for 00*/
  69. int WinAmount;
  70. char doubleZero[]="00";          /*Char for the double zero*/
  71.  
  72.  
  73. srand(time(NULL));         /*Enter the Computer's clock*/
  74.  
  75. /*Error for the missing values*/
  76. m=scanf("%s %d %s %d %s %d %s %d",&Beta,&Mon1,&Betb,&Mon2,&Betc,&Mon3,&Betd,&Mon4);
  77. if ( m != 8){
  78. printf("ERROR MESAGE\nMissing Values\nPlease make sure to entered 8 inputs representing 4 Bets\n\n\n");
  79. return 0;}
  80.  
  81. /* Check the input bets separatly, and convert the entered value to do the calculation */
  82. if ( strncmp(doubleZero, Beta, 2))      /* strncmp(char fun, input, number of char (digit))*/
  83. {Bet1=atoi(Beta);}          /* convert the entered value for Beta into Bet1 if integer */
  84.  
  85. if ( strncmp (doubleZero, Betb, 2)){
  86. Bet2=atoi(Betb);}                  /*alfa bit to integer*/
  87.  
  88. if ( strncmp (doubleZero, Betc, 2)){
  89. Bet3=atoi(Betc);}
  90. if ( strncmp (doubleZero, Betd, 2)){
  91. Bet4=atoi(Betd);}
  92.  
  93.  
  94.  
  95.  
  96. /*  Error Mesages For Unexpected Or Missing Input Values */
  97. if (Bet1<0){      
  98. printf("ERROR MESSAGE:\nFirst Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  99. return 0;}    /*If this if statement is true run it and end the program after*/
  100. if (Bet1>37){   
  101. printf("ERROR MESSAGE:\nFirst Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  102. return 0;}
  103. if (Mon1<0){      
  104. printf("ERROR MESSAGE:\nFirst Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  105. return 0;}    /*If this if statement is true run it and end the program after*/
  106. if (Mon1==0){   
  107. printf("ERROR MESSAGE:\nFirst Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  108. return 0;}
  109. if (Bet2<0){
  110. printf("ERROR MESSAGE:\nSeconed Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  111. return 0;}
  112. if (Bet2>37){
  113. printf("ERROR MESSAGE:\nSeconed Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  114. return 0;}
  115. if (Mon2<0){      
  116. printf("ERROR MESSAGE:\nSecound Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  117. return 0;}    /*If this if statement is true run it and end the program after*/
  118. if (Mon2==0){   
  119. printf("ERROR MESSAGE:\nSecound Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  120. return 0;}
  121. if (Bet3<0){
  122. printf("ERROR MESSAGE:\nThird Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  123. return 0;}
  124. if (Bet3>37){
  125. printf("ERROR MESSAGE:\nThird Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  126. return 0;}
  127. if (Mon3<0){      
  128. printf("ERROR MESSAGE:\nThird Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  129. return 0;}    /*If this if statement is true run it and end the program after*/
  130. if (Mon3==0){   
  131. printf("ERROR MESSAGE:\nThird Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  132. return 0;}
  133. if (Bet4<0){
  134. printf("ERROR MESSAGE:\nFourth Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  135. return 0;}
  136. if (Bet4>37){
  137. printf("ERROR MESSAGE:\nFourth Bet Number is Incorrect\nPlease make sure that you enter a correct bet number 00 or number between 0-36\n\n");
  138. return 0;}
  139. if (Mon4<0){      
  140. printf("ERROR MESSAGE:\nFourth Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  141. return 0;}    /*If this if statement is true run it and end the program after*/
  142. if (Mon4==0){   
  143. printf("ERROR MESSAGE:\nFourth Bet Money Amount is Incorrect\nPlease make sure that you entered a positive value\n\n");
  144. return 0;}
  145.  
  146.  
  147.  
  148.  
  149. printf("     \nWelcome To Casino * &#1601;&#1580;&#1585; *\n\n\nPlease Mind This Casino Use The American Style\nYou Now Can Bet On 00!! \nGood Luck\n\n");
  150. printf("You have 4 Bets\nTake Your Time Before You Entered Each Bet Number Followed By Money Amount\n\n");         
  151.  
  152.  
  153. WinNumber=(rand()%38)/*Generate Random Numbers between 0-37*/
  154. if(WinNumber==37){
  155. printf("\n   **SPINNING** \n**Winning Number is 00\n\n\n");} /*If random number is 37 then read it as 00*/
  156. else{
  157. printf("\n\n**SPINNING** \n**Winning Number is %d**\n\n",WinNumber);}
  158.  
  159.  
  160.  
  161. if (Bet3!=WinNumber && Bet1==WinNumber && Bet2==WinNumber && Bet4==WinNumber ){
  162. printf("Congrates You Won\n");
  163. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  164. printf("Your Winning Bet is (%d, $%d) and (%d, $%d) and (%d, $%d)\n",Bet1,Mon1,Bet2,Mon2,Bet4,Mon4);
  165. printf("Winning Number is %d \n", WinNumber);
  166. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  167. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35)+(Mon2*35)+(Mon4*35));
  168. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon1*35)+Mon1+(Mon2*35)+Mon2+(Mon4*35)+Mon4);
  169. printf("Total Loss: $%d \n", LosAmount=-(Mon3));
  170. return 0;}
  171.  
  172.  
  173. if (Bet2==WinNumber && Bet3==WinNumber && Bet4==WinNumber && Bet1!=WinNumber){
  174. printf("Congrates You Won\n");
  175. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  176. printf("Your Winning Bet is (%d, $%d) and (%d, $%d) and (%d, $%d)\n",Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);
  177. printf("Winning Number is %d \n", WinNumber);
  178. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  179. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon2*35)+(Mon3*35)+(Mon4*35));
  180. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon2*35)+Mon2+(Mon3*35)+Mon3+(Mon4*35)+Mon4);
  181. printf("Total Loss: $%d \n", LosAmount=-(Mon1));
  182. return 0;}
  183.  
  184. if (Bet1==WinNumber && Bet2==WinNumber && Bet3==WinNumber && Bet4!=WinNumber){
  185. printf("Congrates You Won\n");
  186. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  187. printf("Your Winning Bet is (%d, $%d) and (%d, $%d) and (%d, $%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3);
  188. printf("Winning Number is %d \n", WinNumber);
  189. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  190. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35)+(Mon2*35)+(Mon3*35));
  191. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon1*35)+Mon1+(Mon2*35)+Mon2+(Mon3*35)+Mon3);
  192. printf("Total Loss: $%d \n", LosAmount=-(Mon4));
  193. return 0;}
  194.  
  195.  
  196. if (Bet1==WinNumber && Bet3==WinNumber && Bet4==WinNumber && Bet2!=WinNumber){
  197. printf("Congrates You Won\n");
  198. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  199. printf("Your Winning Bet is (%d, $%d) and (%d, $%d) and (%d, $%d)\n",Bet1,Mon1,Bet3,Mon3,Bet4,Mon4);
  200. printf("Winning Number is %d \n", WinNumber);
  201. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  202. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35)+(Mon3*35)+(Mon4*35));
  203. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon1*35)+Mon1+(Mon3*35)+Mon3+(Mon4*35)+Mon4);
  204. printf("Total Loss: $%d \n", LosAmount=-(Mon2));
  205. return 0;}
  206.  
  207.  
  208. if (Bet1==WinNumber && Bet2==WinNumber && Bet3!=WinNumber && Bet4!=WinNumber){
  209. printf("Congrates You Won\n");
  210. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  211. printf("Your Winning Bet is (%d, $%d) and (%d, $%d)\n",Bet1,Mon1,Bet2,Mon2);
  212. printf("Winning Number is %d \n", WinNumber);
  213. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  214. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35)+(Mon2*35) );
  215. printf("Tolal profit(Money You Won + Bet Money): %d \n", WinAmount= (Mon1*35)+Mon1+(Mon2*35)+Mon2);
  216. printf("Total Loss: $%d \n", LosAmount=-(Mon4+Mon3));
  217. return 0;}
  218.  
  219. if (Bet1==WinNumber && Bet3==WinNumber && Bet2!=WinNumber && Bet4!=WinNumber){
  220. printf("Congrates You Won\n");
  221. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  222. printf("Your Winning Bet is (%d, $%d) and (%d, $%d)\n",Bet1,Mon1,Bet3,Mon3);
  223. printf("Winning Number is %d \n", WinNumber);
  224. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  225. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35)+(Mon3*35) );
  226. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon1*35)+Mon1+(Mon3*35)+Mon3);
  227. printf("Total Loss: $%d \n", LosAmount=-(Mon4+Mon2));
  228. return 0;}
  229.  
  230. if (Bet1==WinNumber && Bet4==WinNumber && Bet3!=WinNumber && Bet2!=WinNumber){
  231. printf("Congrates You Won\n");
  232. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  233. printf("Your Winning Bet is (%d, $%d) and (%d, $%d)\n",Bet1,Mon1,Bet4,Mon4);
  234. printf("Winning Number is %d \n", WinNumber);
  235. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  236. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35)+(Mon4*35) );
  237. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon1*35)+Mon1+(Mon4*35)+Mon4);
  238. printf("Total Loss: $%d \n", LosAmount=-(Mon2+Mon3));
  239. return 0;}
  240.  
  241.  
  242. if (Bet2==WinNumber && Bet3==WinNumber && Bet1!=WinNumber && Bet4!=WinNumber){
  243. printf("Congrates You Won\n");
  244. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  245. printf("Your Winning Bet is (%d, $%d) and (%d, $%d)\n",Bet2,Mon2,Bet3,Mon3);
  246. printf("Winning Number is %d \n", WinNumber);
  247. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  248. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon2*35)+(Mon3*35) );
  249. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon2*35)+Mon2+(Mon3*35)+Mon3);
  250. printf("Total Loss: $%d \n", LosAmount=-(Mon1+Mon4));
  251. return 0;}
  252.  
  253.  
  254. if (Bet2==WinNumber && Bet4==WinNumber && Bet1!=WinNumber && Bet3!=WinNumber){
  255. printf("Congrates You Won\n");
  256. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  257. printf("Your Winning Bet is (%d, $%d) and (%d, $%d)\n",Bet2,Mon2,Bet4,Mon4);
  258. printf("Winning Number is %d \n", WinNumber);
  259. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  260. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon2*35)+(Mon4*35) );
  261. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon2*35)+Mon2+(Mon4*35)+Mon4);
  262. printf("Total Loss: $%d \n", LosAmount=-(Mon1+Mon3));
  263. return 0;}
  264.  
  265.  
  266. if (Bet3==WinNumber && Bet4==WinNumber && Bet1!=WinNumber && Bet2!=WinNumber){
  267. printf("Congrates You Won\n");
  268. printf("You Bet On The Following: (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  269. printf("Your Winning Bet is (%d, $%d) and (%d, $%d)\n",Bet3,Mon3,Bet4,Mon4);
  270. printf("Winning Number is %d \n", WinNumber);
  271. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  272. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon3*35)+(Mon4*35) );
  273. printf("Tolal profit(Money You Won + Bet Money): $%d \n", WinAmount= (Mon3*35)+Mon3+(Mon4*35)+Mon4);
  274. printf("Total Loss: $%d \n", LosAmount=-(Mon1+Mon2));
  275. return 0;}
  276.  
  277.  
  278. if (Bet1==WinNumber && Bet2!=WinNumber && Bet3!=WinNumber && Bet4!=WinNumber){
  279.  
  280. printf("Congrates You Won\n");
  281. printf("You Bet On The Following (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);
  282. printf("Your Winning Bet is:(%d, $%d )\n", Bet1, Mon1);
  283. printf("Winning Number is: %d \n", WinNumber);
  284. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  285. printf("Profit(Money You Won): $%d \n", WinAmount= (Mon1*35) );
  286. printf("Total Profit(Money You Won + Bet Money): $%d\n", WinAmount=(Mon1*35)+Mon1);
  287. printf("Total Loss: $%d \n", LosAmount= -(Mon2+Mon3+Mon4));
  288. return 0;}
  289.  
  290. if (Bet2==WinNumber && Bet1!=WinNumber && Bet3!=WinNumber && Bet4!=WinNumber){
  291. printf("Congrates You Won\n");
  292. printf("You Bet On The Following (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  293. printf("Your Winning Bet is (%d, $%d)\n",Bet2, Mon2);
  294. printf("Winning Number is %d \n", WinNumber);
  295. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  296. printf("Profit (Money You Won): $%d \n", WinAmount= (Mon2*35) );
  297. printf("Tolal profit(Money You Won + Bet Money) =%d \n", WinAmount= (Mon2*35) + Mon2);
  298. printf("Total Loss: $%d \n", LosAmount=-(Mon1+Mon3+Mon4));
  299. return 0;}
  300.  
  301.  
  302. if (Bet3==WinNumber && Bet1!=WinNumber && Bet2!=WinNumber && Bet4!=WinNumber){
  303. printf("Congrates You Won\n");
  304. printf("You Bet On The Following (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  305. printf("Your Winning Bet is %d $%d\n",Bet3, Mon3);
  306. printf("Winning Number is %d \n", WinNumber);
  307. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  308. printf("Profit: $%d \n", WinAmount= (Mon3*35) );
  309. printf("Tolal profit =%d \n", WinAmount= (Mon3*35) + Mon3);
  310. printf("Total Loss: $%d \n", LosAmount=-(Mon1+Mon2+Mon4));
  311. return 0;}
  312.  
  313.  
  314. if (Bet4==WinNumber && Bet1!=WinNumber && Bet2!=WinNumber && Bet3!=WinNumber){
  315.  
  316. printf("Congrates You Won\n");
  317. printf("You Bet On The Following (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  318. printf("Your Winning Bet is (%d $%d)\n",Bet4, Mon4);
  319. printf("Winning Number is %d \n", WinNumber);
  320. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  321. printf("Profit: $%d \n", WinAmount= (Mon4*35) );
  322. printf("Tolal profit :%d \n", WinAmount= (Mon4*35) + Mon4);
  323. printf("Total Loss: $%d \n", LosAmount=-(Mon1+Mon2+Mon3));
  324. return 0;}
  325.  
  326. if (Bet1==Bet2==Bet3==Bet4==WinNumber){
  327. printf("Congrates You Won\n");
  328. printf("You Bet On The Following (%d,%d), (%d,%d), (%d,%d), (%d,%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);   
  329. printf("Your Winning Bet is: (%d $%d) and (%d $%d) and (%d $%d) and (%d $%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);
  330. printf("Winning Number is %d \n", WinNumber);
  331. printf("Total Money You Bet On is: $%d\n", Profit=Mon1+Mon2+Mon3+Mon4);
  332. printf("Profit: $%d \n", WinAmount= (Mon1*35)+(Mon2*35)+(Mon3*35)+(Mon4*35) );
  333. printf("Tolal profit: $%d \n", WinAmount= (Mon1*35)+Mon1+(Mon2*35)+Mon2+(Mon3*35)+Mon3+(Mon4*35)+Mon4);
  334. printf("Total Loss: $%d \n", LosAmount=0);
  335. return 0;}
  336.  
  337.  
  338. if (Bet1!=WinNumber && Bet2!=WinNumber && Bet3!=WinNumber && Bet4!=WinNumber){
  339. printf("Sorry You Loss!\n");
  340. printf("You Bet On The Following (Bet Number, Money Amount): (%d,$%d), (%d,$%d), (%d,$%d), (%d,$%d)\n",Bet1,Mon1,Bet2,Mon2,Bet3,Mon3,Bet4,Mon4);
  341. printf("-->Total Money You Bet On = $%d\n",Profit=Mon1+Mon2+Mon3+Mon4);
  342. printf("-->Winning Number Dose Not Equal To The Numbers You Bet On \n", WinNumber);
  343. printf("-->Tolal Profit =$0 \n");
  344. printf("-->Tolal Loss =$%d \n", WinAmount= -(Mon1+Mon2+Mon3+Mon4));
  345. return 0;}
  346.  
  347. }