0
How can i convert lowercase letters into uppercase letters using array?
3 Respostas
+ 3
char myLetters []={'a','b'...'z'};
char caps=myLetters[(place in alphabet-1)]-32;
cout << caps;
+ 1
#include <iostream>
using namespace std;
int main() {
char a[10];
int i;
for(i=0;i<10;i++)
cin>>a[i];
for(i=0;i<10;i++)
a[i]-=32;
for(i=0;i<10;i++)
cout<<a[i];
return 0;
}
0
you can also use the "to upper" statement