Tag: Switch Case
Total: 11 Posts
Posts of Tag: Switch Case
  1. C++ temperature conversion - converts fahrenheit to celcius or celcius to fahrenheit with user's choice

    C++ Program for temperature conversion which converts fahrenheit to celcius or celcius to fahrenheit depending upon user's choice #include <iostream.h> #include <conio.h> void main() { clrscr();...Learn More
    Switch CaseC++ Programs
  2. switch statement in C – Part 2

    switch statement in C – Part 2 In the last tutorial I told you about the syntax and working of a program using switch keyword. Well in day to day programming we generally don’t use that syntax in C. This is b...Learn More
    Switch CaseC ProgramsC Tutorials
  3. switch statement in C – Part 3

    switch statement in C – Part 3 In the last tutorial I told you about the practical use of switch keyword. As I said earlier a programmer generally use this keyword for menu driven programs. Today I will tell ...Learn More
    Switch CaseC ProgramsC Tutorials
  4. switch statement in C – Part 1

    switch statement in C – Part 1 It is quite common that in day to day life we have to choose one option from several choices. Say if you have to choose only one desert out of the menu. Suppose if I give you a t...Learn More
    Switch CaseC ProgramsC Tutorials
  5. C++ Program to perform all arithmetic calculation using switch case

    C++ Program to perform all arithmetic calculation using switch case #include <iostream.h> #include <conio.h> void main() { clrscr(); float a, b, res; int ch, q; cout <<...Learn More
    Switch CaseC++ Programs
  6. C++ program to enter a number and print it into words

    C++ program to enter a number and print it into words ``` include include void once(int a) { switch (a) { case 1: cout << "One"; break; case 2: cout << "Tw...Learn More
    Switch CaseC++ Programs
  7. C++ Program to do arithmetic operations according to user choice using switch case

    include<iostream.h> #include <conio.h> void main() { clrscr(); int a, b; char c; cout << "Enter any expression(ex:3*7):"; cin >> a >> c >> b; switch ...Learn More
    Switch CaseC++ Programs
  8. C++ program to calculate area of a circle,a rectangle or a triangle depending upon user's choice

    C++ program to calculate area of a circle,a rectangle or a triangle depending upon user's choice #include <iostream.h> #include <conio.h> #include <math.h> void main() { clrscr(); //to cl...Learn More
    Switch CaseC++ Programs
  9. C program to check given alphabate is vowel or not using switch case

    #include <stdio.h> #include <conio.h> void main() { char ch; clrscr(); printf("Enter an alphabate:"); scanf("%c", &ch); switch (ch) { case 'a': case 'A': case...Learn More
    Switch CaseC Programs
  10. C program to perform arithmetic operations using switch case

    C program to perform arithmetic operations using switch case #include <stdio.h> #include <conio.h> #include <stdlib.h> void main() { int ch; float a, b, res; clrscr(); printf("...Learn More
    Switch CaseC Programs
  11. C program input number week's day(1-7) - translate equivalent name day of week

    C program to input number of week's day(1-7) and translate to its equivalent name of the day of the week #include<stdio.h> #include<conio.h> void main() { int ch; clrscr(); //to clear the s...Learn More
    Switch Case