using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int menu;
float R1,R2,R3,RS,RP;
cout<<"==========================\n";
cout<<"<< PROGRAM RANGKAIAN LISTRIK >> ";
cout<<"=============================\n\n";
cout<<"pilihan : \n";
cout<<"Hambatan seri Total (RS)\n";
cout<<"Hambatan paralel Total (RP)\n";
cout<<"Not Found \n\n";
cout<<"Masukan pilihan [1/2/3] : \n";
cin>>menu;
switch(menu){
case 1 :
cout<<"nilai resister 1 (R1) : ";
cin>>R1;
cout<<"\n nilai resister 2 (R2) : ";
cin>>R2;
cout<<"\n nilai resister 3 (R3) : ";
cin>>R3;
}
return 0;
}
Tidak ada komentar:
Posting Komentar