i wanna know about the file system in c++ please help me in arranging the file efficiently... you can add me on fb or mail me ... fb- harvinder rathour harvinderrathour@gmail.com
Write a program in C to play the “LOTTO GAME”. Note:- For the purpose of the presentation of this assignment, you must be able to show some winning outcomes (i.e. no randomness). Every Saturday the draw is broadcast live on TV. The “LOTTO GAME” is played as follows: Six numbers between 1 and 40 inclusive are generated at random. If a number has been generated it is not generated a second time. A player can bet any six numbers between 1 and 40 inclusive. The cost for each bet is Rs 20. A player can bet as many times as he wishes for each draw. If the player gets all the six numbers correct (the order is not important) he wins the jackpot. If more than one player wins the six correct numbers the jackpot is shared equally among them. The program should be able to record all the players, their bet and the total bet. For five, four and three correct (again order is not important) betting consolation prizes are awarded. Obviously as the number of correct numbers decreases the number of potential winners increases and the prizes decrease also. You should make use of functions in your program.
I am confuse and dom't know where and how to start..plzz enlight me
i wanna know about the file system in c++
ReplyDeleteplease help me in arranging the file efficiently...
you can add me on fb or mail me ...
fb- harvinder rathour
harvinderrathour@gmail.com
main()
ReplyDelete{
int a=5,b=2;
printf("%d",a+++b);
}
whats the out put
whether it prints 7 or not
this
Deletea+++b
is similar to (a++)+b
so this prints 7
Write a program in C to play the “LOTTO GAME”. Note:- For the purpose of the presentation of this assignment, you must be able to show some winning outcomes (i.e. no randomness). Every Saturday the draw is broadcast live on TV. The “LOTTO GAME” is played as follows: Six numbers between 1 and 40 inclusive are generated at random. If a number has been generated it is not generated a second time. A player can bet any six numbers between 1 and 40 inclusive. The cost for each bet is Rs 20. A player can bet as many times as he wishes for each draw. If the player gets all the six numbers correct (the order is not important) he wins the jackpot. If more than one player wins the six correct numbers the jackpot is shared equally among them. The program should be able to record all the players, their bet and the total bet. For five, four and three correct (again order is not important) betting consolation prizes are awarded. Obviously as the number of correct numbers decreases the number of potential winners increases and the prizes decrease also. You should make use of functions in your program.
ReplyDeleteI am confuse and dom't know where and how to start..plzz enlight me
https://www.facebook.com/cprogramminghelp/posts/628677133874343?notif_t=wall
Deletec program to remove 0's at last
ReplyDeleteusing while loop