C Program To Calculate Sum and Average of N Numbers without using Arrays, using For Loop

Publicado el: 11 marzo 2020
en el canal de: Technotip
40,738
395

http://technotip.com/7580/c-program-t...

Write a C program to calculate Sum and Average of N numbers without using Arrays and using for loop.

If limit is 5, then inside for loop we ask the user to input 5 integer values, and we add those values to the previous value present in variable sum. Simultaneously we keep incrementing the value of variable count by 1 for each iteration of for loop. Once the value of variable count is greater than the value of limit, then the control exits for loop. Immediately outside for loop we calculate the average by using the formula:

average = sum / limit;

C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programmi...

C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programmi...


En esta página del sitio puede ver el video en línea C Program To Calculate Sum and Average of N Numbers without using Arrays, using For Loop de Duración hora minuto segunda en buena calidad , que subió el usuario Technotip 11 marzo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 40,738 veces y le gustó 395 a los espectadores. Disfruta viendo!