View Code of Problem 25

#include<iostream>
using namespace std;
int max(int a[], int n);


int main()
{
	int t;//组数
	char a[1000] = {' '};
	cin >> t;
	
	int i;
	for (i = 0; i<t; i++)
	{
		cin >> a[i];	
	}
	for (i = 0; i < t; i++)
	{
		char c = a[i] + 'A' - 'a';
		cout << c<<endl;
	}
}

Double click to view unformatted code.


Back to problem 25