Computer Science, asked by shiwangi48, 1 year ago

how to write an if else program​

Answers

Answered by ayush09905
1

Explanation:

if user inputs valid account number and pin, then allow money withdrawal. If statement works like "If condition is met, then execute the task". It is used to compare things and take some action based on the comparison. As a programmer you must have a good control on program execution flow.

Answered by miachel
1

Answer:if...else is a branching statement. It is used to take an action based on some condition. For example - if user inputs valid account number and pin, then allow money withdrawal.

If statement works like "If condition is met, then execute the task". It is used to compare things and take some action based on the comparison. Relational and logical operators supports this comparison.

C language supports three variants of if statement.

Simple if statement

if...else and if...else...if statement

Nested if...else statement

As a programmer you must have a good control on program execution flow. In this exercise we will focus to control program flow using if...else statements.

Explanation:


miachel: i hope you can understand mark me as brailist ok
shiwangi48: can you give an example
miachel: how can i give your answer
miachel: i have answer but how
miachel: this is link you see you answer ok
ayush09905: ok
miachel: mark me as brainlist
miachel: okk
Similar questions