473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

C++ question ihave problem with it

Koko has found one more paper, but this time there is an mathematical expression written on it.

Can you help Koko verify the expression?

If the expression is right print "Yes", Otherwise print the right answer of the expression.

Input
You will be given a number A followed by a sign S, then another number B followed by an equal sign '=' then another number R the result on the paper (0  ≤  A, B ≤  100),(  - 105  ≤  R  ≤  105), S can be ('+', '-', '*') without the quotation.

Output
Output either "Yes" (without the quotation) or the right answer depending on the statement.
Nov 30 '18 #1
1 1278
Luuk
1,047 Expert 1GB
Half the answer is already in the question.

"You will be given a number A "
int A;
"followed by a sign S"
char S;
" then another number B followed by an equal sign '='"
int B;
char X;
"then another number R the result"
int R;
….
Dec 1 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Aldo Polli | last post by:
Hi, I have this error when I start apache2 with php4 Syntax error on line 233 of /mypath/apache2/conf/httpd.conf: Cannot load /mypath/apache2/modules/libphp4.so into server: dynamic linker:...
0
by: Madhusudan Singh | last post by:
Hi After months of waiting for Redhat to come out with up to date rpms, I decided to compile a working OpenSSL/ MySQL / PHP / httpd installation for myself. Installed the latest versions of...
1
by: Andric | last post by:
I have a database in MySQL. And when I make queries to this DB from Java applet, my information which stored there in russian laguage is displayed as "hierogliphes". What Ihave to do to solve this...
3
by: cjh999777 | last post by:
Hi, I am new to using databases in vb.net and i have created a accessdatabase called employee it has a key field called employeeID. Ihave gotton as far as creating the dataconnection,...
1
by: =?Utf-8?B?U2VtU2Vt?= | last post by:
Helloz iam working in a web application for univesity. ihave diffrent kind of roles like: 1-Studetn Affairs 2-Staff imake three sperate master pages for them.: example:
2
by: cherukuc | last post by:
We have a unique issue where a query does a tablescan even though an index is present. Basically we created a new DB by loading existing data from a source DB. The index names and everything else...
0
by: prasadbby | last post by:
i have sstab with 9 tabs. Each tab have 4 text box. I have named all the textboxes in arrays. For eg. In first tab the array is txtbox0(0),txtbox0(1),txtbox0(2),txtbox0(3)... Similarly in the second...
1
by: hugh detrick | last post by:
my printer keeps saying Ihave a paper jam. there is no pap[er jamed in the printer but my computer keeps telling me that there is a paper jam.I have tried everthing I can think of but it will not...
1
by: vignesh viki | last post by:
i want to be communicate both java and linux .ihave a some knowledge both linux and java.but i don't know how to manipulate both and where we have to join it.please help me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.