C program for conversition of Lowercase To Uppercase
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char name[30], name1[30];
int i;
printf("\n Enter your name : ");
scanf("%s", name);
for(i = 0; name[i] != '\0'; i++)
name1[i] = name[i] - 32;
name1[i] = '\0';
printf("\n Your name is %s", name1);
}
Comments
Post a Comment