c program of Nested If control in Bank System


if…if ..if  nested if 

in c   if.. if ..if  nested if   control   enter in if body  again  and again , than chose branch means  1 st if condition is true control enter another condition .. this type mechanism is called nested if..


syntax 

if(condition-1)

{

if(condition-2)

{

if(condition-n)

{

statements of  condition – n ;

}

statements of  condition – 2 ;

}

statements of  condition – 1 ;

}


write a c program A bank has a policy of giving a bonus of 2% for every one irrespective of their balance . in Scheme for women A Bank   is given  to female account holder if their balance is more than 5000.

OUTPUT:

Enter ‘F’ for female ‘M’ for male : F

Enter  Balance     :     5000

Balance = 5000.00

Balance with Bonus = 7500.00

(Visited 86 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image