Friday, 12 October 2012

Flowchart for switch-case

How to write switch case flowchart?

switch case statement:

switch( choice )
{
  case 1:
      statement 1;
      break;

  case 2:
      statement 2;
      break;

  case 3:
      statement 3;
      break;

  case n:
      statement n;
}

(in above module n = number of cases.)


switch case flowchart:



switch case statement flowchart in C
Figure: flowchart of switch case statement in C

Related programs:

  1. Flowchart for if, if..else, nested if..else, if..else if
  2. Flowchart for prime number
  3. Flowchart for finding Armstrong number
  4. Sum of square - C program, Algorithm and Flowchart
  5. Factorial - C program, Algorithm and Flowchart

No comments:

Post a Comment