Running Till Termination Option Is Entered
Running Till Termination Option Is Entered
int main()
float V,I,R;
int choice;
for(choice=1;choice<=4;choice++)
cin>>choice;
if(choice==1)
cout<<"enter voltage:"<<endl;
cin>>V;
cin>>R;
I=V/R;
cout<<endl;
else if(choice==2)
cin>>I;
cin>>R;
V=I*R;
cout<<endl;
else if(choice==3)
cin>>V;
cin>>I;
R=V/I;
cout<<endl;
else
cout<<"GOOD BYE..."<<endl;
return 0;