Home » C++ » Solved Programs » Display the quotient of 10 numbers
C++ console application that will display the quotient of 10 numbers
#include<iostream>
using namespace std;
int main(){
double arr[10];
double quotient;
for(int i=0; i<10; i++){
cout<<"\n Enter ["<<i<<"] : ";
cin>>arr[i];
}
quotient = arr[0];
for(int i=1; i<10; i++){
quotient /= arr[i];
}
cout<<"\n Quotient of 10 number is : "<<quotient;
return 0;
}