4 like 0 dislike

Please write a program that receives 7 characters aweSOME in the same line. It then changes the first 3 lowercase characters into uppercase and the last 4 uppercase characters into lowercase. Kindly use a given template to finish the task.

Example(template)

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
	char s1,s2,s3,s4,s5,s6,s7; // You can change these declarations, it entirely depends on you.
	printf("Input your characters:\n"); // Do not change this

	// Your conditions start from here
	
	return 0;
}

Input

Input your characters:
aweSOME

Output

AWEsome

Suggestion

You may need a little help from your friendly table, here is ASCII table.

[Normal] Coding (C) - asked in Questions Bank by (5.9k points)
Available when: Unlimited - Due to: Unlimited
| 21 views
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:108.162.221.153
©2016-2019

Related questions

4 like 0 dislike
0 answers
[Normal] Coding (C) - asked Nov 3, 2017 in Questions Bank by nat236919 (5.9k points)
Available when: Unlimited - Due to: Unlimited
| 13 views
8,045 questions
60,931 answers
33,050 comments
1,171 users