how can i know the number of inputs at the time
like in the second input how can i know the number of inputs is 2 by that time and the third input is 3 xD thats a problem for me xD sorry but im new to C++
Use a counter variable int counter = 0;. Each time the input loop completes, increment counter by 1: counter++;. Each time you output the average you can simply cout << "average:" << sum/count;
thanks that helped alot =) reallly !
now im facing somthin i didnt expect !!
i cant do the minimum value all other operations are working well only minimum value
i cant figure it out too
i figured out the maximum value
int max=0;
and i use if(x>max)
max=x
cout<<"maximum value:"<<max<<endl;