Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strings"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Scan()
	fmt.Println(strings.ToUpper(sc.Text()))
}

C++: #include <bits/stdc++.h>
#define r(i,n) for(int i;i<n;i++)
using namespace std;
int main(){
  string s;
  getline(cin,s);
  r(i,s.size())cout<<touppr(s[i]);
  cout<<endl;
}

C++: #include<iostream>
using namespace std;
int main(){
  int t;
  char str;
  while(1){
   str= getchar();
    if(str>='a'&&str<='z'){
      str=str-32;
      cout<<str;
    }else if(str==' '){
      cout<<' ';
    }else if(str=='.'){
      cout<<'.'<<endl;
      break;
    }else{
      cout<<str;
    }
  }
  return 0;
}

C++: #include<stdio.h>
#include<string.h>
char buf;
int main(void){
	while(1){
		scanf("%c",&buf);
		if(buf>='a' && buf<='z'){
			buf-=32;
		}
		else if(buf=='.'){
		printf("%c",buf);
			break;
		}
		printf("%c",buf);
	}
	printf("\n");
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;

int main(){
  int i = 0;
  char str[129], str2[129];
  
  fgets(str, 128, stdin);

  while(1){
    if('A' <= str[i] && str[i] <= 'Z'){
      str2[i] = str[i] - 0;
    }else if(str[i] == '.'){
      str2[i] = '.';
    }else if(str[i] == ' '){
      str2[i] = ' ';
    }else if(str[i] == '\n'){
      break;
    }else{
      str2[i] = str[i] - 'a' + 65;
    }

    i++;
  }
  
  cout << str2 << endl;

  return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
using namespace std;

int main()
{
	char sta[210];
	cin.getline(sta, 210);
	string sa = sta;

	transform(sa.begin(), sa.end(), sa.begin(), toupper);
	cout << sa << endl;

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    char str;
    while(scanf("%c",&str)!=EOF){
        if(islower(str)!=0)str=toupper(str);
        cout<<str;
    }
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>

#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

/*thief??????*/

int main(void){
    
    char str[210] = {};
    char copy[210] = {};
    int i = 0;
    gets(str);
    while(*(str+i))
    {
        *(copy+i) = toupper(*(str+i));
        i++;
    }
    printf("%s\n",copy);
    return 0;
    
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
	char s[1000];

	while(gets(s) != NULL){

		int len = strlen(s);

		for(int i = 0;i < len;i++){
			if(s[i] >= 'a' && s[i] <= 'z'){
				s[i] -= 32;
			}
		}
	cout << s << endl;
	}
}

C++: #include<string>
#include<vector>
using namespace std;
int main() {
	string s;
	int i = 0;
	getline(cin,s);
	transform(s.begin(), s.end(), s.begin(), toupper);
	cout << s << endl;
}

C++: #include<iostream>
#include<string>
#include <cctype>

using namespace std;

int main(){
  string str;

  getline(cin, str);
  for(string::size_type i=0; i != str.size(); ++i){
    str[i] = toupper(str[i]);
  }
  cout << str << endl;
  return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	string a,b;
	getline(cin,a);
	b=a;
	for(int i=0;i<a.size();i++){
		for(int j=0;j<=25;j++){
			if(a[i]=='a'+j)b[i]='A'+j;
		}
	}
	cout<<b<<endl;
	return 0;
}

C++: #include <stdio.h>
int main()
{
char c;
while(scanf("%c",&c) != EOF){
if('a'<=c && c <='z')
printf("%c",c-=32);
else
printf("%c",c);
}
return 0;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<string>
#include<cmath>
#include<numeric>
using namespace std;


int main(void) {

  string s;
  getline(cin, s);

  for(int i=0; i<s.size(); i++){
    if( s[i]-'a' >= 0 && s[i]-'a' < 26 ) s[i] -= 32;
  }
  cout << s << endl;

  return 0;
}

C++: #include <iostream>
#include <string.h>
using namespace std;

int main(void){
  char str[10000];
  int flg = 0;

  while( cin >> str ){

    if( flg == 1 ) cout << " ";
    else flg = 1;
   
    for( int i = 0 ; i < strlen(str) ; i++ ){    
      str[i] -= 'a'-'A';
    if( 'A' <= str[i] && str[i] <= 'Z' ) cout << str[i];
    }
  }
  cout << endl;
  return 0;
}

C++: #include<iostream>
#include<string>

using namespace std;

int main() {
	string line;

	getline(cin, line);

	for (auto& a : line) {
		if (a >= 'a' && a <= 'z') {
			// 大文字のほうがASCIIコード上で小さい値
			a -= 'a' - 'A';
		}
	}

	cout << line << endl;

	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cctype>
using namespace std;
#define ARRAY_MAX 250

int main(void){

    char array[ARRAY_MAX];

    int i = 0;

    fgets(array,ARRAY_MAX,stdin);

    while(array[i] != '\0'){
        array[i] = toupper(array[i]);
        i++;
    }
    
    cout << array << endl;
    
    return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
char ToUpper (char cX) { return toupper(cX); } 
using namespace std;

int main() {
	string in;
	while(cin>>in, !cin.eof()){
		transform(in.begin(), in.end(), in.begin(), ToUpper);
		cout<<in<<" ";
	}
	return 0;
}

C++: #include<cstdio>
#include<iostream>
#include<string>
using namespace std;
int main ()
{
    string str;
    getline(cin,str);
    for(int i=0;i<str.length();i++){
        if(str[i]>96&&str[i]<123){
            str[i]-=32;
        }
    }
    cout<<str<<endl;
    return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main(){
	string str;
	getline(cin, str);
	for(int i = 0; i < str.size(); i++){
		if(str[i] < 90){
			continue;
		}
		else{
			str[i] -= 32;
		}
	}
	cout << str << endl;
	return 0;
}

C++:  
 #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 #include<stack>
 
 using namespace std;
  
 int main()
 {
   string a,b;
   while(getline(cin,a))
   {
     for(int i=0;i<a.length();i++)
     { 
       if(a[i]>='a'&&a[i]<='z') b[i]=(a[i]-'a')+'A';
       else b[i]=a[i];
     }
     cout<<b<<endl;
   }
   //while(1);      
   return 0;    
 }

C++: #include<string>
#include<vector>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<sstream>
#include<functional>
#include<map>
#include<stack>
#include<set>
#include<cmath>

#define REP(i,s,e) for(int i=int(s);i<=int(e);i++)
#define rep(i,n) for(int i=0;i<int(n);i++)

#define EPS 1e-6

using namespace std;


int main(){

	string s;
	getline(cin,s);

	int n=s.size();

	rep(i,n){

	if(s[i]-'a'>=0 && s[i]-'a'<=25){
	s[i]=s[i]-'a'+65;
	cout << s[i];
	}
	else cout << s[i];

	}

    cout << endl;

    return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main() {
  string str;
  getline(cin,str);
  for(int i=0;i<str.size();i++) {
    if('a' <= str[i] && str[i] <= 'z') {
      str[i] = str[i] - 'a' + 'A';
    }
  }
  cout << str << endl;
}

C++: #include <stdio.h>
#include <iostream>
#include <algorithm>
#include <math.h>
 
using namespace std;
 
int main(){
 
    char buf[201];
    fgets(buf,201,stdin);
    for(int i=0;buf[i]!='\0';i++){
        if(buf[i] >= 97 && buf[i] <=122){
            buf[i] -= 32;
        }
    }
 
    printf("%s",buf);
    return 0;
}