This C program generates 20 random integers between -50 and 50, stores them in an array, and analyzes the data. It counts the positive, negative, zero, even and odd numbers, calculates the sum and average, and prints the results. It initializes variables, fills the array with random numbers in a loop, counts the values in categories in loops, calculates sum and average, and prints the final output and pauses the program.
This C program generates 20 random integers between -50 and 50, stores them in an array, and analyzes the data. It counts the positive, negative, zero, even and odd numbers, calculates the sum and average, and prints the results. It initializes variables, fills the array with random numbers in a loop, counts the values in categories in loops, calculates sum and average, and prints the final output and pauses the program.
This C program generates 20 random integers between -50 and 50, stores them in an array, and analyzes the data. It counts the positive, negative, zero, even and odd numbers, calculates the sum and average, and prints the results. It initializes variables, fills the array with random numbers in a loop, counts the values in categories in loops, calculates sum and average, and prints the final output and pauses the program.