#include<iostream>
main()
{
    int limit,input;
    int sum=0;
    int i;
    std::cout<<"Please Enter the limit: ";
    std::cin>>limit;
    for(i=0;i<limit;i++)
    {
        std::cout<<"Please Input values: ";
        std::cin>>input;
        sum+=input;
    }
    std::cout<<"The sum of the values is: "<<sum;
    std::cout << std::endl;
    std::cout<<"The average of the values is: "<<sum/1+i;
}
What to do if i want to find Max and Min Values from the values input by the user?
 
     
     
     
     
     
    