Programming Homework 2 PROGRAMMIN CENG10003
Mohawk College – Computer Engineering Technology CENG 10003 – Programming Homework 2 Q1) : #include <stdio.h> int main() { int x, y, sum; srand(time(0)); x = 1 + rand()%6; y = 1 + rand()%6; sum = x + y; if (x+y==7 || x+y==11) { printf("Player winsn"); } else { printf("%dn",sum); printf("Thank you for playingn"); } return 0;
Written for
- Institution
-
Mohawk Valley Community College
- Course
-
CENG10003
Document information
- Uploaded on
- November 16, 2022
- Number of pages
- 6
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
programming homework 2 mohawk college programmin ceng10003