Friday, 5 January 2018

How to Check input is Alphabet or not





#include <stdio.h>

#include <conio.h>



main()

{



char c;

printf("Enter a character: ");

scanf("%c",&c);





if((c>='a'&& c<='z') || (c>='A'&& c<='Z')  )

{

printf("%c is an alphabet",c);



}

else

{

printf("%c is not an alphabet",c);



}











}

No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...