0

Guys help me how to create a flowchart with this code. Thanks

Please help me how to explain it #include <iostream> using namespace std; int main() { int n, i; float num[100], sum=0.0, average; cout<<"Enter how many numbers you would like to get the average:"; cin>>n; while (n>100||n<=0) { cout<<"Error! Number should be in range of (1 to 100)."<<endl; cout<<"Please enter the number again:"; cin>>n; } for (i=0; i < n; ++i) { cout<<i+1<<"Enter number:"; cin>>num[i]; sum+=num[i]; } average=sum/n; cout<<"Average of numbers entered is:"<<average; }

26th Jul 2018, 5:16 AM
Joven Castillo
Joven Castillo - avatar
0 Antworten