Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
50 Programming and Data Structures
The following program illustrates the use of various relational operators.
3.10 Write a program to read three variables x, y and z. Use conditional statements and
evaluate values of variables a, b and c. Perform the sum with two sets of variables.
Checks the sums for equality and prints different messages.
mainO
{i n t x , y ,z ,a ,b ,c ,m ,n ;
c l r s c r () ;
p r in tf ("E n ter Values o f x , y , z m) ;
scanf ("%d %d %d*, &x,&y,&z);
a*(x> *5 ? 3 : 4) ;
printf ("\n Calculated value of a is % d ”, a);
b=(y<=8 ? 10 : 9);
printf ("\n Calculated value ofb is%d", b); ...
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

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343