Whats problem here

whats problem here…

hii--------------------

change this

if(ch[0] >= 'A' && ch [0]<='Z'){
		cout<<'U';//updated
	}

what is $lt and &lt ?

Didn’t get it, share some reference for the same

#include #include using namespace std; void changecase(string name) { if (name[0] >= ‘A’ && name[0] <= ‘Z’) { cout<< ‘U’; } else if(name[0] >= ‘a’ && name[0] <= ‘z’) { cout<< ‘L’; } else{ cout<< ‘I’; } } int main() { string name; getline(cin,name); changecase(name); return 0; }

Don’t post so many threads for same doubt, it will waste your time only. This is your code, working fine giving 100% result. Submit this cause you haven’t submitted any code after 10:56:34 am

#include<iostream>
using namespace std;
void changecase(string name)
{

if (name[0] >= 'A' && name[0] <= 'Z')
{
   cout<<'U';
}
else if(name[0] >= 'a' && name[0] <= 'z')
{
    cout<< 'L';
}
else{
	 cout<< 'I';
}
return;
}

int main()
{
string name;
getline(cin,name);
changecase(name);
return 0;
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.