Homework 3
EENG 112/INFE 112
INTRODUCTION TO PROGRAMMING
HOMEWORK 3
1) Write a program that simulates the rolling of two dies. The sum of the two values should then be calculated and placed in a single-subscripted array. Print the array. Also find how many times 12 appear.
2) Write a C program to generate 20 random numbers in the range of -1 to 55 and store them in an array named arrayNums . Then have your program find the largest random number stored in the array.
NOTE : Submission of the homework should be made electronically to the e-mail address eeng112@emu.edu.tr