Nested If And Switch Statement - English-USA
- subtitles off
- captions off
- English
- Questions posted on Forums
- C and Cpp Tutorials - English-USA
-
About nested if program
But it is not an nested if program.It is a ladder if.
01-02M 30-40S unanswered konikaverma02@gmail.com
Question posted on: Sept. 27, 2019, 10:04 p.m.
-
DOUBT IN QUESTION
A)Write a program to check whether the age of the employee is between 20 and 60? B) Write a program to check whether the age of the employee is between 20 and 59? Here, I mentioned two questions.Which one is correct?We cant able to write program to the Question A?In the tutorial also asked the students to write coding for A? B) Write a program to check whether the age of the employee is between 20 and 59?CODING:-#include<stdio.h>int main(){ int a; printf("Enter the age of a employee between 20 to 59"); scanf("%d",&a); if((a/10)==5){ printf(" AGE RANGE BETWEEN 50 to 59");} else if((a/10)==3){ printf(" AGE RANGE BETWEEN 30 to 49");}else if((a/10)==2){ printf(" AGE RANGE BETWEEN 20 to 29");}else{printf("AGE NOT IN RANGE\n");}return 0;}
08-09M 10-20S vigneshwarigopalan
Answer last updated on: Aug. 19, 2024, 3:02 p.m.
-
QUESTION PROBLEM
Write a program to check whether the age of the employee is between 20 and 60? Is the above question correct? Write a program to check whether the age of the employee is between 20 and 59? Or this one
08-09M 0-10S vigneshwarigopalan
Answer last updated on: Aug. 19, 2024, 2:59 p.m.
-
nested if else
COMPARE TO SWITCH AND IF ELSE, which statement is more often used in real time programming
01-02M 50-60S prabhu84a
Answer last updated on: Feb. 29, 2020, 11:58 a.m.
-
nested if else
Nested if else is used specially in which type of program ?
04-05M 0-10S ratultimung04@gmail.com
Answer last updated on: Dec. 9, 2016, 1:12 p.m.
-
Nested if and switch statements
What are conditional statements?
09-10M 0-10S ishpreet9464
Answer last updated on: April 4, 2016, 12:03 p.m.
Questions posted on ST Forums:
3532 visits
Outline:
Nested if and switch statement -Nested if statement. -Switch statement. -Syntax for nested-if statement -Syntax for switch statement -break statement -Comparison between nested if-else and switch statement
Width: | 848 | Height: | 696 |
---|---|---|---|
Duration: | 00:09:13 | Size: | 6 MB |
Show video info