Q:

Write a program in c to function to check lowercase letter

0

Write a program in c to function to check lowercase letter

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Algorithm:-

·        start

·        input number

·        if(ch>=’a’&&ch<=’z’) it is true then display LOWERCASE CHARACTER.

·        else not an alphabet

·        end

Flowchart:-

Program:-

#include<stdio.h>
#include<conio.h>
void characcheck(char ch)
{
If(ch>=’a’&&ch<=’z’)
Printf(“LOWERCASE CHARACTER\n”);
Else
Printf(“is not an alphabet\n”);
}
Int main()
{
char c;
printf(“Enter any character\n”);
scanf(“%c”,&c);
characcheck(c);
getch();
return 0;
}

Output:

enter any character
j
LOWERCASE CHARACTER

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Find the greater of the three numbers... >>
<< Write a Function to check uppercase letter...