123 Eng

### Engineering the engineers™

Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

Computer Science / IT
Electronics
Electrical
Mechanical
Chemical
Civil

CAT / MBA

GMAT / Foreign MBA
Latest Jobs

Displaying  Source Code(s)

 Easy Calc -------------------------------------------------------------------------------- Description : This is a very simple calculator with functions like Addition, Subtraction, Multiplication, division, percentage and even Power.The code is extremelysimple and very easy to understand. #include #include #include void main() { long double x,y; char ch,ar; do { clrscr(); cout<<" *WELCOME TO NANU'S CALCULATOR*
; cout<<" This is a Calculator containing the following functions Addition Subtraction Multiplication Division Percentage Power
; cout<<" Type [+] for Addition [-] for Subtraction [*] for Multiplication [/] for Division [%] for Percentage [^] for Power
; cout<<" Enter Function To use = "; cin>>ch; cout<<(char)7; cout<; cout<<" Enter First Number= "; cin>>x; cout<<" Enter Second Number= "; cin>>y; cout<<" Your answer is "; cout<; cout<<" Enter First Number= "; cin>>x; cout<<" Enter Second Number= "; cin>>y; cout<<" Your answer is "; cout<; cout<<" Enter First Number= "; cin>>x; cout<<" Enter Second Number= "; cin>>y; cout<<" Your answer is "; cout<; cout<<" Enter First Number= "; cin>>x; cout<<" Enter Second Number= "; cin>>y; cout<<" Your answer is "; cout<; cout<<" Enter Number= "; cin>>x; cout<<" Enter Percentage= "; cin>>y; cout<<" Your answer is "; cout<; cout<<" Enter Number= "; cin>>x; cout<<" Enter Power= "; cin>>y; cout<<" Your answer is "; cout<>ar; } while(ar=='Y'|| ar=='y'); if(ar=='N' || ar=='n') { cout<<" Thankyou for using this Calculator.Good Bye.
; cout<<" Press any key to exit......."; } getch(); cout<<(char)7; }

Contribute content or training reports / feedback / Comments
job placement papers