CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
char a[25];
int i;
clrscr();
printf("Enter string in lower case: ");
gets(a);
printf("\n\nString in upper case: ");
for(i=0;a[i]!='\0';i++)
putchar(a[i]-32);
getch();
}
|
CODING |
|
OUTPUT |
For any query or suggestion please comment below...
No comments:
Post a Comment