dimanche 20 septembre 2020

C using input from functions to calculate random number and place in array

C:Write a program that calculates 10 random numbers in a specified range, saves them in an array and prints them to the screen. Asking for max range (50-100) should be in its own function named ‘findMax’, which is called from main.

I can create a function to ask for the maximum range input but I don't know how to use that info when calculating 10 random numbers or how to place those into the array.




Aucun commentaire:

Enregistrer un commentaire