29) C PROGRAM TO MAKE A CALCULATOR
LOGIC:- For making a calculator,all basic operator is is used such as +(for addition),-(for subtraction),*(for multiplication) and %(for division).For performing operation operator required operands(data) which is given either directly or by user.Our aim is user first take choice which operation is performed then take two number from user and then perform the chosen operation.Here choice is come so Switch-Case is used.For again and again queries While loop is used.
EXAMPLE:-
-----SHARE IT WITH YOUR FRIENDS---
LOGIC:- For making a calculator,all basic operator is is used such as +(for addition),-(for subtraction),*(for multiplication) and %(for division).For performing operation operator required operands(data) which is given either directly or by user.Our aim is user first take choice which operation is performed then take two number from user and then perform the chosen operation.Here choice is come so Switch-Case is used.For again and again queries While loop is used.
EXAMPLE:-
======================================
-----SHARE IT WITH YOUR FRIENDS---
Comments
Post a Comment