Enter a string ending with #, which requires all lowercase letters to be converted to uppercase letters, all uppercase and lowercase, and the other characters unchanged.
Input format:
The input gives a non-empty string that has a length of not more than 40, ending in #, in a row.
Output format:
Output the converted string as required on a single line.
Input Sample:
Hello world! 123#
Sample output:
HELLO world! 123
1#include <iostream>2#include <stdio.h>3#include <math.h>4#include <string>5#include <stdlib.h>6 7 using namespace:: STD;8 9 intMain () {Ten One intCount=0; A Charc[ A],temp; - intI=0; - while((Temp=getchar ())! ='#') the { -c[i]=temp; -i++; -count++; + } - for(intI=0; i<count;i++) + { A if(c[i]<='Z'&&c[i]>='a') at { -c[i]=c[i]+'A'-'a'; - } - Else if(c[i]<='Z'&&c[i]>='A') - { -c[i]=c[i]+'a'-'A'; in } - Else{ to } + } -c[count]=' /'; the puts (c); * return 0; $}
Array-05. String Letter case conversion (10)