Write about the branching programs (python). Please give an example of flow chart of conditional statements.
Branching programs are the kind of programs which with the help of comparision operatos decide whether to execute a particular segment of code or not.
For example:
age = int(input("What is your age : "))
if age<18:
print("You are not eligible to vote.")
else:
print("You are eligible to vote")
NOTE: Please refer the following screenshot in case of indentation error.
Flowchart:
Get Answers For Free
Most questions answered within 1 hours.