Program Input Tambah & Bagi













# include <iostream.h>
# include <conio>

      int Tambah (int A, int B) {
         int C;
         C = A+B;
     return (C);
     }

     double Bagi (double A, double B) {
         double C;
         C = A/B;
    return (C);
    }

void main (){
    int A,B;
     cout << " Masukan Nilai A :";
     cin >> A;
     cout << " Masukan Nilai B :";
     cin >> B;
     cout << endl;
     cout << endl;
     cout << " Hasil Dari Tambah\t:" << Tambah (A,B);
     cout << endl;
     cout << " Hasil Dari Bagi\t:" << Bagi (A,B);

getch ();
}

0 Response to " Program Input Tambah & Bagi "