Skip to Main Content
Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
book

Xpress Learning - Computer Fundamentals of Programming an IT by Pearson

by Ashok N. Kamthane, Rohit Khurana
May 2024
Beginner to intermediate content levelBeginner to intermediate
465 pages
16h 14m
English
Pearson India
Content preview from Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
Decision Statements II-83
if(z>y)
printf("z=%d\n",z);
else
printf("y=%d\n",y);
}
}
OUTPUT:
Enter three numbers x, y, z : 10 20 30
The largest out of three numbers is :z=30
Explanation: This is also an example of nested ifs. When the if statement satisfies the condition,
control passes to another if statement block. Three numbers are entered through keyboard. The first if
statement compares the first number with the second number. If the condition is true, the block following
the first if statement executes. Inside the block, ifstatement checks whether the first number is larger
than the third number. If yes, then, the largest number is the f ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Express Learning - Computer Fundamentals and Programming

Express Learning - Computer Fundamentals and Programming

Ashok Kamthane, ITL ESL
Windows® Internals, Sixth Edition, Part 2

Windows® Internals, Sixth Edition, Part 2

David A. Solomon Mark E. Russinovich and Alex Ionescu

Publisher Resources

ISBN: 9781299954878