473,398 Members | 2,165 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.

What would be the output, if the user entered integer value 3 for number1 and integer

if( (number1 >= 0) && (number2 <=1) )
cout<<"Average ";

if( (number1 >= 2) && (number2 > 2) )
cout<<"Morning ";

if( (number1 <= 1) && (number2 >= 1) )
cout<<"Kate ";

if( (number1 > 0) && (number2 >=1) )
cout<<"Smith ";

if( (number1 == 3) && (number2 != 3) )
cout<<"Jaipur";



What would be the output, if the user entered integer value 3 for number1 and integer value 0 for number2

- unanswered
Aug 18 '15 #1
1 1275
weaknessforcats
9,208 Expert Mod 8TB
Try it and find out.
Aug 18 '15 #2

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

Similar topics

5
by: Dave Rahardja | last post by:
I've tried looking this topic up in the standard manual but came up empty... 1. What is the value of an unsigned integral type after it is decremented below zero? 2. What is the value of an...
7
by: Sashi | last post by:
Two questions: (1) I can pull the text of an XML element as a string just fine using code as such: strSomeString = myXmlDoc.SelectSingleNode("/Element1/Element2/Element3",...
22
by: hantie | last post by:
In my program, for reducing the complexity, the integer was stored as char, so 2 is stored as '2', which is decimal: 50 Is is possible for me to obtain the integer value of '2' in the program,...
0
by: olimpia | last post by:
Hello, I am getting back to programming after many many years. Never work with Basic and now I am trying to work on a little project using Visual Basic.NET 2003 to verify info (at least 10 chars)...
4
by: Karthik Gurusamy | last post by:
Hi, I see that I can provide a default value for an option. But I couldn't find out any way if the user really entered the option or the option took that value because of default. A simple check...
23
by: Jess | last post by:
Hello, I understand the default-initialization happens if we don't initialize an object explicitly. I think for an object of a class type, the value is determined by the constructor, and for...
0
by: dgs | last post by:
How to scan the user-entered value ? like, we have "scanf()" in 'C'.......
5
by: mgdvicky | last post by:
MY HTML CODE: <script> require(); </script> </head> <body class="claro" bgcolor="pink" onload='disablet()'> <h1>PRODUCT MASTER</h1> <div class="grouping" id="divid"> ...
1
by: Soudabdul | last post by:
Prompt the user to enter second integer.prompt the user to enter the third integer
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.