डाउनलोड पी.डी.एफ. ई-बुक्स
C - Switch Case Statement

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

#include <stdio.h>
#include <conio.h>

  void main() {

  char Day='D';

  switch(Day){

  case 'A' :
 printf("\nToday is Sunday");
 break;

  case 'B' :
 printf("\nToday is Monday");
 break;

  case 'C' :
 printf("\nToday is Tuesday");
 break;

  case 'D' :

  case 'E' :
 printf("\nToday is Wednesday");
 break;

  case 'F' :
 printf("\nToday is Thurday");
 break;

  case 'G' :
 printf("\nToday is Friday");
 break;

  case 'H' :
 printf("\nToday is Saturday");
 break;

  default :
 printf("\nDay is Not Found");
 }
 getch ();
 }

आउटपुट :

Today is Wednesday