About Lesson
Decision Control Instructions
As we know a program is a solution of problem and a problem can not solve without decision so to take decision in c programs there are following decision control instructions…
1. if-else
syntax-
if(condition)
{
….. if condition goes to true then this block executes
}
else
{
…. if condition goes to false then this else block executes
}
condition if block else block
true work not work
false not work work
Note – else block always optional

1. enter 2 nos and print which one is biggest
2. enter sale price and cost price of book print profit or loss