Idea and Need: Every one of us uses default calculator on PC (yeah, it's a great one...), but as a programmer, we are the one who spends most of the time on CMD or terminal (for MAC once). So why not create a simple calculator which can be used on CMD and yes, it feels so good when you use your own programs to complete daily stuff. So let's see what steps you should follow... Steps: We have to create a menu which has the option to select which operation to perform. You can add as many operations as you want, but I am taking following basic one: Addition Subtraction Multiplication Division(remember about 0...😎) Power Square Root Natural Log Log to base 10 Factorial Show user that what are you doing...for example if it is the addition of 2 and 3, print 2 + 3 = 5 on screen. After performing any operation ask the user if he/she again want to use the calculator. If yes, run calculator again otherwise exit the program. Take help of google, stack overflow whe...
The blog to help programmers to learn, experiment and understand new concepts.