Skip to content
Programmingoneonone
Programmingoneonone
  • Home
  • CS Subjects
    • IoT ? Internet of Things
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
Programmingoneonone

C++ program to find out the given character is vowel or not

YASH PAL, 31 July 202422 August 2024

In this post, we will write a C++ program to find out whether the given character is a vowel or not. user will enter the character and the program will print whether is given character is a vowel or not.

C++ program to find out the given character is vowel or not

C++ program to find out given character is a vowel or not.

#include<iostream>
#include<conio.h>

int main(void)
{

    char y;

    std::cout<<"Press any character = ";
    std::cin>>y;

    switch(y)
    {
        case 'a':
            std::cout<<"The given character is vowel";
            break;
        case 'e':
            std::cout<<"The given character is vowel";
            break;
        case 'i':
            std::cout<<"The given character is vowel";
            break;
        case 'o':
            std::cout<<"The given character is vowel";
            break;
        case 'u':
            std::cout<<"The given character is vowel";
            break;
        default:
            std::cout<<"The given character is not vowel";
    }

return 0;
}

Output

Press any character = e
The given character is vowel
C++ Programming Tutorials coding problems solutions

Post navigation

Previous post
Next post

Pages

  • About US
  • Contact US
  • Privacy Policy

Programing Practice

  • C Programs
  • java Programs

HackerRank Solutions

  • C
  • C++
  • Java
  • Python
  • Algorithm

Other

  • Leetcode Solutions
  • Interview Preparation

Programming Tutorials

  • DSA
  • C

CS Subjects

  • Digital Communication
  • Human Values
  • Internet Of Things
  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2025 Programmingoneonone | WordPress Theme by SuperbThemes