C++ 14: Using for loops to get multiple user input - in Dev-C++

preview_player
Показать описание
In this video, we use a for loop to run a number of times as we specify, we use only 1 variable, and reuse it to find the average of numbers.

Рекомендации по теме
Комментарии
Автор

This is almost what i'm looking for, my question is, I'm trying to make a program that adds a user inputted amount of data, so if the guy says i want to input 3 numbers, it adds up those three, and i have no idea, how to store those values, so i can't add them up (where u devided it by 4 to make an average i'd like them added up), is this possible and could u help me?

Twixou
Автор

Hi, I need to write a program that sorts 3 user input from smallest to largest using while, for and if loops. I want to try getting the numbers with for loop, and sort them with while and if loops. I would really really appreciate your help because i really need it in a short time. Thank you...

egtmclsmk
join shbcf.ru