C Programming - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › C Programming (878 Views)
| C Programming by BheeTee(op): 12:24am On Dec 16, 2014 |
Sorry friends, I would like you to help me out on this assignment given to us by our lecturer, he told us to create a calculator "C Program" that can perform the arithmetic operations (+,-,*,/,%) and can accept more than two inputs (e.g 2*3-6/4). We are to submit the assignment by Thursday 18 dec. pls don't let me down |
| Re: C Programming by umaryusuf(m): 6:57am On Dec 16, 2014 |
BheeTee:This should be very easy to solve. Even a simple Google search on this topic save the day. /* Source code to create a simple calculator for addition, subtraction, multiplication and division using switch...case statement in C programming. // source: http://www.programiz.com/c-programming/examples/calculator-switch-case/ # include <stdio.h> |
| Re: C Programming by HouseOfBalloons(f): 10:16am On Dec 16, 2014 |
The person above me has already answered. Its a very simple program |
| Re: C Programming by BheeTee(op): 1:01pm On Dec 16, 2014 |
thank U im very grateful buh i need the one that can take in more than two operator/operand at a time |
| Re: C Programming by asalimpo(m): 11:34pm On Dec 18, 2014 |
you want something 'algebraic' ? That calculates based on operator precedence? E.g * computes before + / -, so that e.g 4+5*3 will compute as 4+(5*3) and not in the straight order it was written? |
Introduction To C++ Programming (Video Tutorial For Beginners) • C Programming Challenge To Be Solved Under 10 Minutes • 2 • 3 • 4
SETTING UP Events In Laravel 5.1 • Microsoft BASIC Programming Tutorials • Graphic Designer Needed
;