Geeks Projects C
Every Program is here !!!
Pages
Home
Asp.Net
Java Programming
Web Programming
Friday, 3 October 2014
WAP to covert String into Lower case
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
//char b='A';
char a[100];
char *k=a;
printf("\n Enter the String ");
gets(a);
while(*k)
{
if(*k>='A' && *k<='Z' )
{
*k=*k+32;
}
k++;
}
printf(" %s",a);
getch();
}
No comments:
Post a Comment
Please write your doubts
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please write your doubts