Question: Write an indexed for loop to fill an array called prime such that element prime[0] contains the first prime number, prime[1] the second prime number,

Write an indexed for loop to fill an array called prime such that element prime[0] contains the first prime number, prime[1] the second prime number, and so on. The prime numbers (six in total) will be provided by the user using "scanf" within the for loop. Finally calculate and display the sum of those six prime numbers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!