[Solved] How to add all positive integers and get their average [closed]
[ad_1] This is a fairly simple problem (almost everything isif one’s basics are clear). The below program shows how you can do this. I have added some comments so that you can get an idea about what is happening. #include <iostream> #include <vector> int main() { int numberOfInputs = 0; std::cout<<“How many inputs?”<<std::endl; std::cin>>numberOfInputs;//take input … Read more