4 thích 0 k thích
105 đã xem

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) - đã hỏi trong Questions Bank bởi (5.9k điểm)
ID: 30263 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 105 đã xem
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.175.205
©2016-2024

Những câu hỏi liên quan

4 thích 0 k thích
0 trả lời
[Normal] Coding (C) - đã hỏi ngày 3 tháng 11 năm 2017 trong Questions Bank bởi nat236919 (5.9k điểm)
ID: 30264 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 194 đã xem
12,783 câu hỏi
183,443 trả lời
172,219 bình luận
4,824 thành viên