Purchase Solution

C program: counting numbers between 0-9

Not what you're looking for?

Ask Custom Question

Write a C program that generates one hundred random integers between 0 and 9 and displays the count for each number.
Make use of rand() to generate a random integer between 0 and 9. Use an array of ten integers to store the counts for the number of 0's, 1's, ... , 9's.

Purchase this Solution

Solution Summary

Attached C program source code has UNIX style newline endings, so make sure that you use a text editor (like Wordpad) that understands UNIX style newline endings, to view it properly on Windows.

Solution also gives the output from an execution of the attached program.

Solution Preview

Please find attached 348061.c that has been tested for successful compilation using "gcc -Wall 348061.c", and successful execution.

Attached C program ...

Purchase this Solution


Free BrainMass Quizzes
Architectural History

This quiz is intended to test the basics of History of Architecture- foundation for all architectural courses.