Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- void main() {
- char str[1000] = "sdffgAdsfdfF sdfdsfSfsd LLL OOO";
- char str2[1000] = "HelLo WorLd";
- for (int i = 0; str[i] != 0; i++)
- {
- if (str[i] >= 'A' && str[i] <= 'Z') {
- printf("0x%X", str[i]);
- }
- else
- printf("%c", str[i]);
- }
- printf("\n");
- for (int i = 0; str2[i] != 0; i++)
- {
- if (str2[i] >= 'A' && str2[i] <= 'Z') {
- printf("0x%X", str[i]);
- }
- else
- printf("%c", str2[i]);
- }
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement