Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Header file



Test expression



Working with switch case



" ; " after loop



Comment




Print vowel or consonant



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #define pf printf int main() { char ch; pf("Enter any character: "); scanf("%c",&ch); if( ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch=='U' || ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u') pf("\nThe entered character is a vowel."); else pf("\nThe entered character is consonant."); return 0; }
OUTPUT:


© 2018 - All rights reserved