Web Designing & Development
Web Designing
HTML
HTML5
CSS
CSS3
Responsive
Bootstrap 5
Web Development
JavaScript
jQuery
PHP
MySQL
Useful Links
angularjs
digital-marketing
Programming
Beginner
Programming In C
Programming In C++
Data Structure
Python 3
Django
Intermediate
Core Java
MySQL
Advanced
Console C#.NET
Visual C#.NET
ASP.NET
MSSQL
Student Projects
Web Project
Web Templates
JavaScript Projects
C & C++ Projects
C# Console Application
C# Window Application
Ask Question
EBooks
Advertise with us
Jobs
Contacts us
T
C Tutorial
C
Define C
P
Define Programming
C
First C Program
v
Compiler vs Interpreter
V
C Variable
K
C Keywords
D
C Data Types
C
C Comments
S
TurboC Shortcut keys
O
C Operators
o
Hierarchy of Operators
A
Ex: Arithmetic Operator
F
C Formatting Output
E
C Escape Sequence
i
C if statement
I
Ex: If statement
S
C Switch statement
S
Ex: Switch
/
Increment / Decrement
L
C Loops
L
Ex: Loops
N
C Nesting Of Loops
N
Ex: Nested Loops
J
C Jumping Statements
E
C Exit(), Gotoxy()
A
C Arrays 1D
A
Ex: Arrays 1D
A
C Arrays 2D
A
Ex: Arrays 2D
S
C Sorting
V
ASCII Value
I
Character I/O Function
C
Ex: Character
S
C String Functions
S
Ex: Strings
o
Array of Strings
M
C Math Functions
F
User-defined Function
F
Exercise Function
R
Local, Reference variable
C
Function Calling types
P
Array Passing Function
F
Recursion Function
R
Ex: Recursion Function
V
Constant Variable
C
Storage Class
H
C Header Files
P
C Preprocessor
P
C Pointers
t
Pointer to Pointer
S
C Structures
S
Exercise Structure
T
C Typedef
E
C Enumeration
F
C File Handling
F
Ex: File Handling
L
Command Line Argument
MC
MCQ
Qu
Question-Answer
Exercise Questions - Switch
Input number between 1-7 and print day. For example: 1-Monday, 2-Tuesday … so on.
Solution:
Java
Input number between 1-12 and print corresponding month. i.e. 1-January, 2-February, 3-March … so on.
Currency Converter: WAP to convert Dollar into Rupees and vice versa.
Solution:
C
Java
WAP to create Menu based (choice based) program for temperature conversion.
Solution:
C
WAP to use Arithmetic operators (Mini Calculator).
Solution:
C
Write an interactive program to do the following operations by providing the choice using the switch statement:
1 - Add two numbers
2 - Subtract two numbers
3 - Multiply two numbers
4 - Divide two numbers
5 - Exit
C Switch statement
Updated: 22-Mar-23
Increment / Decrement