Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Iterative statement



" ; " after loop



Specifer



Header file



Working with switch case




Character conversion



// 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<='Z') pf("\nThe entered character was upper case. In lower case it is:\t%c",(ch+32)); else pf("\nThe entered character was lower case. In upper case it is:\t%c",(ch-32)); return 0; }
OUTPUT:


© 2018 - All rights reserved