View Code of Problem 25

#include<iostream>
using namespace std;
int main(){
	int T;
	char str[100];
	scanf("%d\n",&T);
	for(int i=0;i<=T;i++){
		str[i]=getchar();
		if(str[i]>='A'&&str[i]<='Z')
		str[i]+=32;
	}
	for(int i=0;i<=T;i++){
		putchar(str[i]);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 25