Program to enter two integer and print the quotient and remainder

Program to enter two integer and print the quotient and remainder
  #include <iostream>
using namespace std;
int main(){
       int a, b, c;
       cout << "Enter Number" << endl;
       cin >> a;
       cout << "Enter number" << endl;
       cin >> b;
       c = a%b;
       cout << "Reminder is " << c << endl;
       float d, e, f;
       e = a;
       f = b;
       d= e / f;
       cout << "quotient is " << d << endl;

       system("pause");
       return 0;

}

Comments