#include <stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str[25],i;
printf("\n enter the string=");
scanf("%s",str);
for(i=0;i<=strlen(str);i++)
{
if(str[i]>=97&&str[i]<=122)
str[i]=str[i]-32;
}
printf("\n upper case string is:%s",str);
}
OUTPUT :
enter the string=natpethunai
upper case string is:NATPETHUNAI
Process finished
![infinitynotes00 infinitynotes00](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0awuDsz-32tw_ktucYA6MorrgonRwosUwEXtpTVRtqLUuXn2m0uz78bDKL5-Q7gk5uOBx_5D7zuQHyem_qpYlR52GmLvfRrI5DEV5BgWN1H5nATCoCSycHTyPIyAFqDb-SETgQXAu91L9/w200-h200-rw/INFINITY+NOTES.png)
No comments:
Post a Comment