+ 1

C calculator

Recently I made a calculator in c language, I write code in c using switch case The confusion is that first I take input from user num1 and secondly operator and at last num2, So it's generates an error I check my all Syntex mistakes but error is not found at last I use search box from again the error is not found then at last I just change the place of taking input from user Then first I just take input operator ,secondly num1 or at third num2(now this is the correct code) Why?

3rd Mar 2021, 2:26 PM
Abdul Moiz
Abdul Moiz - avatar
4 Antworten
+ 1
Could you provide your code? Better that 2 codes with 1 the original and 1 what you changed.
3rd Mar 2021, 2:31 PM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Yes of course
3rd Mar 2021, 2:32 PM
Abdul Moiz
Abdul Moiz - avatar
0
Sorry i havent laptop, so I ll provide you later
3rd Mar 2021, 2:41 PM
Abdul Moiz
Abdul Moiz - avatar
0
Bro that's my code mistake in calculator but still the modulus operator is not working
7th Mar 2021, 10:03 AM
Abdul Moiz
Abdul Moiz - avatar