View Code of Problem 25

#include<iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cmath>
using namespace std;
#pragma warning(disable:4996)


int main() {
	int n;
	scanf("%d", &n);
	char c = 'a' - 'A';
	char a;
	for (int i = 0; i < n; i++) {
		scanf(" %c", &a);
		a = a + c;
		printf("%c\n", a);

	}
	return 0;
}	

Double click to view unformatted code.


Back to problem 25