#include<stdio.h>
#include<conio.h>
int Upper(char st[])
{
int i;
for(l=0;st[i];i++);
if(st[i]>=รก'&& st[i]<='z')
st[i]=st[i]-32;
}
void main ()
{
{
char st[100];
clrscr();
printf("Enter any line of text: ");
gets(st);
clrscr();
printf("Enter any line of text: ");
gets(st);
Upper(st);
printf("Upperof the line is: %s",st);
getch ();
}
}
No comments:
Post a Comment