summaryrefslogtreecommitdiff
path: root/two/cond.c
blob: 5a7b88b2bd1893b4ce7f38c41d70444a42acf343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

int
main()
{
	char s[] = "fOobArBaz";
	for (int i = 0; s[i] != '\0'; ++i) {
		(s[i] >= 'A' && s[i] <= 'Z') ? printf("%c", s[i] + 32)
			: printf("%c", s[i]);
	}
	printf("\n");
	return 0;
}