Basic calculator

sir i wrote this program. when i run this here it shows some error.

it displays
runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15

also when i try to run it by using my editor and windows powershell it is not showing me desirable answer.

Please send your code link


@sdevwrat sir is this alright??

sorry sir by mistake i sent u the wrong file. please wait i am sending


@sdevwrat sir this is the correct one. sorry for that

Now your code is working https://ide.codingblocks.com/s/262403

1 Like

@sdevwrat okay sir i understood my fault, now it is working. thank you.
but still i have one doubt.
the program which u corrected, in that u have read the character ch by using cin>>ch;
but when i use ch=cin.get();
it prints the line Invalid operation! Print again! after giving correct answer.
why is it so??

Try to use cin>> for such inputs or for more information check here https://stackoverflow.com/questions/3780255/cin-get-not-working

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like

thank u @sdevwrat sir. my doubt is cleared.

1 Like