help4code-logo
  • eLearning
    • Tutorials
    • Programs
    • Interview Questions
    • Technical Questions
    • C Language
    • C++
    • JAVA
    • HTML & CSS
    • PHP
    • AJAX
    • J2EE
    • SQL
    • jQuery
  • Go back to Home
  • Our Placements
  • Tutorials
  • Programs
  • Interview Questions
  • Technical Questions
  • Live Training
  • Our Placements
  • Associated Colleges
  • Our Recruiters
  • Back
  • C Language
  • C++
  • JAVA
  • HTML & CSS
  • PHP
  • AJAX
  • J2EE
  • SQL
  • jQuery

Programs

  1. Home
  2. Programs
  3. C Language
  4. Control Statement
Image

Programs - C Language - Control Statement

  • Programs
    • Find change of given rupees
    • Use of Switch
    • Arithmatic calculator
    • Print hc,c,dc,wc
    • Simple calculator using Switch
    • Print Nothing
    • Find percentage of Student
    • Check eligible for Admission
    • Check number is Armstrong number
    • Find big value
    • Check number is Positive, Negative or 0
    • WAP to know about character using #define
    • Find numbers are even or odd
    • Find number is even or odd
    • Find factorial of number
    • Find factorial using while loop
    • Find factorial of any number
    • Use of GOTO
    • Find leap year
    • Check leap year
    • Addition of two value
    • Find maximum number
    • Find maximum and minimum value
    • Find minimum value
    • Find pass or fail
    • Find power without using string function
    • Find factorial by using recursion
    • Print numbers in reverse order with difference of 2
    • Find the sum of even numbers
    • Generate even or odd number table
    • Find character is vowel or not
    • Check character is vowel or not using switch
    • Find weekend or working days

Program:

#include<stdio.h>

main()
{
 char ch;

 printf("Enter any character: ");
 ch=getchar();

 switch(ch){
  case 'a':
  case 'e':
  case 'i':
  case 'o':
  case 'u':
   printf("%c is vowel.",ch);
   break;
  default:
   printf("%c is constant.",ch);
   break;
 }
 return 0;
}

Output:

Enter any character: 6
6 is constant.
Help4Code

The help4code.com - An e-learning educational website where all computer science students can find rich collection of computer language programs which will help in exploring computer programming.

  • About
  • Associated Colleges
  • Leadership
  • Careers
  • Our Recruiters
  • Community
  • Terms
  • Privacy
  • Help
  • Press
  • Contact
  • Directory

First Floor, Plot No. 4, Near Shat Ayu College, Ring Road Nagpur, Maharashtra, India - 440022
+91 9175287066[email protected]

© Copyright 2022 help4code.com.

  • My Account
  • Sign-in
  • Sign-up