Nested If And Switch Statement - Gujarati
- subtitles off
- captions off
- English
- Gujarati
- Questions posted on Forums
- C and Cpp Tutorials - Gujarati
-
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.
-
1First C Program
-
2First Cpp Program
-
3Tokens
-
4Functions
-
5Scope Of Variables
-
6If And Else If statement
-
Nested If And Switch Statement
-
8Increment And Decrement Operators
-
9Arithmetic Operators
-
10Relational Operators
-
11Logical Operators
-
12Loops
-
13Arrays
-
14Working With 2D Arrays
-
15Strings
-
16String Library Functions
-
17Working With Structures
-
18Understanding Pointers
-
19Function Call
-
20File Handling In C
Questions posted on ST Forums:
1214 visits
Outline:
નેસ્ટેડ ઇફ અને સ્વિચ સ્ટેટમેન્ટ નેસ્ટેડ ઇફ સ્ટેટમેન્ટ. સ્વિચ સ્ટેટમેન્ટ. નેસ્ટેડ ઇફ સ્ટેટમેન્ટ માટે સિન્ટેક્ષ સ્વિચ સ્ટેટમેન્ટ માટે સિન્ટે બ્રેક સ્ટેટમેન્ટ નેસ્ટેડ ઇફ અને સ્વિચ સ્ટેટમેન્ટ વચ્ચે તફાવતો
Width: | 848 | Height: | 696 |
---|---|---|---|
Duration: | 00:09:12 | Size: | 5.1 MB |
Show video info