Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

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;
}

Printing quotient of 10 numbers

C++ code to print quotient of 10 numbers