View Code of Problem 25

#include <stdio.h>
#include <math.h>
#define N 100
int main()
{
	int t, c = 1;
	int i;
	char a[N];
	scanf("%d\n", &t);
	for(i = 0; i < t; i++)
	{
		if(c)
		{
		    scanf("%c\n", &a[i]);
			c = 0;
		}
		else
		{
			scanf("%c", &a[i]);
		}
		a[i] += 32;
	}
	for(i = 0; i < t; i++)
	{
		printf("%c\n",a[i]);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 25