Thursday, June 18, 2020

WAP to input a string and check if it's 1st letter is uppercase or not.

#include<stdio.h>                     
int main()                                                                        A-Z 65 - 90  ( uppercase alphabet )
{
 char alive;
 int ascii;
 printf("enter number");
 scanf("%c",&alive);
 ascii=alive;
 if(ascii>=65 && ascii<=90){
     printf("uppercase");
 }
 else{
     printf("not");
    }
 return 0;
}

No comments:

Post a Comment

pattern

55555 4444 333 22 1 #include <stdio.h> int main() {     int i,j;     for(i=5; i>=1; i--)     {         for(j=1; j<=i;...