Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b;
- a=rand()%10;
- b=rand()%10;
- if((a+b)==7 || (a+b)==11)
- {
- printf("The player wins.\n");
- }
- else
- {
- printf("the sum is:%d\nthank you!\n",(a+b));
- }
- printf("%d %d ",a,b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement