CENG10003
Mohawk Valley Community College
Here are the best resources to pass CENG10003. Find CENG10003 study guides, notes, assignments, and much more.
All 1 results
Sort by:
-
Exam (elaborations)
Programming Homework 2 PROGRAMMIN CENG10003
-
---6November 20222022/2023A+
- 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;
-
$9.99 More Info
Abbyy01