hi i need screen capture for this. i did everything but for some
hi i need screen capture for this. i did everything but for some reason my computer is not copying image
Test Case
Input Expected Output
1 1; 21,8,15,1,9,6,3 Total =
2 10; 2,18,1,12,9,6,3 Total =
3 36; 20,18,15,1,9,6,3 Total =
#include <stdio.h>
int main ()
{
/* variable definition: */
int count, value, sum, total, people;
/* Initialize */
count = 0;
sum = 0;
total = 0;
people = 0;
// Capture number of participants
printf(“Enter the number of participants\n”);
scanf(“%d”, &people);
// Loop through to number of rounds
while (count < 4)
{
printf(“Enter a positive Integer\n”);
scanf(“%d”, &value);
if (value >= 0) {
sum = sum + value;
count = count + 1;
}
else {
printf(“Value must be positive\n”);
}
}
// Calculate total.
total = people * sum;
printf(“Total number of burpees completed by the participants is %d\n “, total );
return 0