- 3
Calculator
what on this code is wrong? https://code.sololearn.com/cAeQsgL9ClBI/?ref=app
43 Respuestas
+ 2
Nicola Esu
It works. try to change depending on needed one, by observing output what & how happening...
printf("%d\n", tot);
write this outside loop for final output only...
2+3-5+7-4=
3 output
+ 6
I wrote my calculator in html + css + javascript
+ 2
my intent was to create a calculator that in a loop kept asking for numbers and symbols and when inserting the symbol = did all the operations. in this way it only does the operation between two numbers.
+ 2
i have to initialize num2 to ?
+ 1
you think the array is not needed?
+ 1
don’t work!
+ 1
don’t work ! i have modifing the code!
+ 1
yes but only if I do for example num1 -or+ num2!
if i want to make 10 - 5 + 3 + 2= don’t work!
+ 1
Jayakrishna
i have changed the while condition but don’t work.
+ 1
if i want to make more operations at the same time i have to use the array for numbers to ?
+ 1
if a user of my calculator would like to do a long calculation, for example
10
+
5
-
2
+
7
=
how should i write?
+ 1
more scanf for numbers ? and more if condictions ?
+ 1
look now!
+ 1
How to install packages in python
+ 1
don’t work!
+ 1
yes is work! thank you !
+ 1
why if i try on xcode the loop don’t end and don’t print the total ?
+ 1
No need to use array .
+ 1
the code is the same but for end the loop I have to insert the first = and then the second = otherwise it does not end