whether the character Entered through the keyboard is a lower case alphabet or not #include<stdio.h> int main() { char ch; //Input character from user printf("Enter any character:"); scanf("%c",&ch); if(ch>='A'&&ch<='Z') { printf("%c is Uppercase alphabet.",ch); } else if(ch>='a'&&ch<='z) { printf("%c is lowercase alphabet",ch); } else { printf("%c is not alphabet",ch); } return 0; } . output Enter any character:U is Uppercase alphabet . related example-- 1.. A digital world colors are specified in Red ,Green ,Blue(RGB) format with value of (R,G,B) varying on integers scale from 0 to 255 in point publishing the colors are mentioned in cyan, magenta - yellow black (CMYK) format ,with value of C,M,Y and k varying on real scale from 0.0 to 1.0 write the program to convert RGB colors to CMYK as per the following formula.. White=max(Red/255,Green/255,Blue/255), cyan...
Comments
Post a Comment