Kredit Kepemilikan Mobil

Posted by Budi Arieyanto | Posted in | Posted on 05.06

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

void main()
{
    int T,Ta,K,J;
   clrscr();

   cout<<"Pendapatan Tetap    : Rp.";
   cin>>T;
   cout<<"Pendapatan Tambahan : Rp.";
   cin>>Ta;
   cout<<"Pendapatan Keluarga : Rp.";
   cin>>K;

   J =T+(Ta/2+K/3);

   if(J>1000000)
       cout<<"\n\nAnda Boleh Kredit Mobil Sedan"<<endl;
   else if(J<1000000 && J>500000)
      cout<<"\n\nAnda Boleh Kredit Mobil Minibus"<<endl;
   else
      cout<<"\n\nMaaf,Anda Tidak Berhak Kredit Mobil Apapun..!"<<endl;

   getch();

}

Comments (0)

Posting Komentar