Calculator with C programming
I am writing a calculator in C, but it will take input like 1+2*9/5. I am not an expert in C, so I thought I can ask the user how many numbers he has (for example let's say 4), then asking 3 times "enter the number, enter operator" and 1-time "enter number". Then putting all inputs to an empty array respectively then doing the operations by looping through the array. But of course, I've got problems. #include <stdio.h> void main() { printf("You will enter your operations in number - operator order.\n"); printf("How many numbers do you have to calculate?"); int how_many; //how many numbers the
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.