DIGIT-ARC read-only archive · snapshot: July 23, 2026

sample programme

11 posts · originally from https://geek.digit.in/community/threads/sample-programme.172410/

J
johnrambo4 Original post #1
Apr 6, 2013 at 9:08 PM
How to make a simple calculator in dev c++? Can someone write full programme? Thanks in advance.
Shah
Shah #2
Apr 7, 2013 at 11:28 AM
You can try going to PSC or sourceforge. I am too lazy to post a full program(FYI, not programme).
harshilsharma63
Apr 7, 2013 at 11:32 AM
You should mention the programming language. I would help if you would have asked for some logic or particular problem you are facing, but full code??? :twisted:
M
May 14, 2013 at 4:36 PM
At least Give it a try. :idea:
We will help you out. Making a calculator in easy.:razz:
setanjan123
Jul 19, 2013 at 12:52 PM
This post maybe a bit late but anyway ill give you a basic outline. Use math.h for the operations of your calc. Write a menu driven program using switch case. Each case will have a specific operation. I hope i made myself clear
I
Jul 27, 2013 at 9:58 PM
Declare 4 variables as int.
Have the different operations like addition,subtraction etc. represented by different numbers.Display the information regarding it.
Accept a no. as input from the user for 'choice' and store it in 1 variable.
Accept 2 nos. as input from the user for 'I no.' & 'II no.' and store it in 2 variables.
Use the 'choice' variable in switch.
For different cases,perform different operations on the 2 nos. and store it in another variable as 'answer'.
Finally,display the 'answer' by using the variable.

Math.h is not required for simple arithmetic operations like +,- etc.
Z
Jul 28, 2013 at 4:04 AM
Which type of sample programming..?
Z
Jul 30, 2013 at 12:38 AM
Please share a great tutorial of programming
Amithansda
Aug 27, 2013 at 2:58 PM
Perhaps he is asking for a full project :p
Shah
Shah #10
Aug 27, 2013 at 5:58 PM
Why you guys are bumping an old thread? The OP has not returned since he created this thread.

Now, Don't say that I have bumped it too. :p :p
Flash
Flash #11
Aug 27, 2013 at 6:02 PM
Maybe he's too involved in the calculator..