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
II-98 Programming Concepts
ts=bs+hra+da+cv+incentive+bonus;
printf("\n %.2f",ts);
getch();
}
OUTPUT:
18900.00
4.
void main()
{
int x=6,y=5,z=10;
clrscr();
printf("\nAnswer is :");
if(x>y)
{
if(x>z)
printf("%d\n",x);
else
printf("%d\n",z);
}
else {if(z>y)
printf("%d\n",z);
else
printf("%d\n",y);
getche();
}
OUTPUT:
Answer is:10
5.
void main()
{
int initial=1000,final=1300,consumed;
float total;
clrscr();
consumed = final-initial;
if(consumed>=200)
total=consumed * 2.50;
M05_ITL-ESL4791_02_SE_C05.indd 98 12/22/2012 4:58:55 PM
Decision Statements II-99
else
total=consumed * 1.50;
printf("Total ...
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