100% C prog to convert lowercase name into upper case
// prog to convert lowercase name into upper case
#include <stdio.h>
#include<string.h>
int main()
{
char name[9];
int i;
printf("enter a name in lower case only without spaces:"); // these conditions are important
scanf("%s",name);
printf("\n name in lower case as entered by user is %s", name);
printf("\n");
for(i=0;name[i]!='\0';i++)
{
printf("%c",name[i]-32);
}
printf("\n1= okaTi");
}
#include <stdio.h>
#include<string.h>
int main()
{
char name[9];
int i;
printf("enter a name in lower case only without spaces:"); // these conditions are important
scanf("%s",name);
printf("\n name in lower case as entered by user is %s", name);
printf("\n");
for(i=0;name[i]!='\0';i++)
{
printf("%c",name[i]-32);
}
printf("\n1= okaTi");
}
ఔట్పుట్ తెర మీద ఇలా..
enter a name:bharat
name is bharat
BHARAT
1= okaTi
name is bharat
BHARAT
1= okaTi
కామెంట్లు
కామెంట్ను పోస్ట్ చేయండి
దయచేసి మీ సలహాలను సూచనలను స్పష్టంగా పేర్కొనగలరు. plz see that ur comments are 'acceptable' in a value based society.