0 like 0 dislike
3.5k views

Please write a program that receives 'A' then outputs 'A'-'Z'. However, if a vowel (A, E, I, O and U) appears, it will show '?' instead.

Example(template)

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

int main(int argc, char *argv[]) {
	char a;                      // can be changed
	printf("Enter your input:"); //DO NOT CHANGE
	scanf("%c",&a);
	
    // Your conditions start from here
	
	return 0;
}

 

Input

Enter your input:A

Output

Enter your input:A
?BCD?FGH?JKLMN?PQRST?VWXYZ

 

[Exercise] Coding (C) - asked in Chapter 3: Branching, Looping and Functions by (5.9k points)
ID: 30241 - Available when: Unlimited - Due to: Unlimited
| 3.5k views

24 Answers

0 like 0 dislike
Hidden content!
*** * * * ** *
* ** ** ** ** * *
int main(){
int i;
**** * ** * char a;
* * *** ** * *** *** * * your input: **** *
* ******* *** ** * ** * * ** * *** ** * *
* * * * ***
* ** * * ** *** *** * * ** ** * * ** **
*** *** * * * ** ** * * * * ***** if(i==65 ||i==69 || i==73 || i==79 * ****
* * * ** * * ***** * ** * ** * *** **** ** ** * * *** ** * **
* ** ** ** * *** * * * * * ***** }
* * * * * *** * * * * ** * * * else{
**** * ** * * * * * * * * ** *** ** * ** **** * *** ******
* *** ** * * * * * *** * * * ** ** }
* * * * * ***** ** * * }
*** * * * * }
}

//INPUT
//Enter your input: A

**
//Enter your input: A
* ** * ** *
50/100 answered by (271 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
* ***** **
** * * * ** * *

/* run this ** * * the *** * * or add your own * ** * *** ** or ** loop */

int * ** * *** * ** {
** * ** ** * a; *** ** * * * **** ******* **** * * **** * * * * ** *** ** *** ***** * ** ** *** * * ** *** * ** ****
** * * ********* ** * your ** ****
** ** *** * ** * * *** * * ***
*** ** **
* *** * ** for (a == 'A'; a *** * **

* * * *** ** * ** * *
* **** * *** * ** * * if (a == *** a == 'E' || a == 'I' || a == 'O' || a == *
*** ** * * *** ** **** ** *
**
***** *** * * * * ***** * *
*** ** *
}
*** *** ** *
* * ** * **** 0;
}
100/100 answered by (252 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include * * * * * *
#include **** ** * *****

int main(int argc, char *argv[]) {
    char a; ***** * * ** * * * * * * ** **** * * * *** ** * * *** * **** **** *** ******* ** *** ** ***** * * **** * can be changed
** *   ** * * your * ** ***** //DO NOT CHANGE
*   **** * * ** ** * ****
   
* * * ** *** * ** ** * *** **
**** ** ******* ** ** * * * ** ** ** * ** * * * * * * * ** *
* * ** ** **** * * * ** *** **** * ****
* * * * *** * * ** * ** *** * * ** * *** * ******* **** ** * *** *
* * *** * ***** ** * * ** * *** ****** * * ** * * **
** ***** * **** **** * * ** **** * ** * * **** * * * * a);
*** ** ** *** ** **
   
    return 0;
}
100/100 answered by (268 points)
0 1
Case 0: Correct output
0 like 0 dislike
Hidden content!
#include **** *** *
#include **** * *

int main(int argc, char *argv[]) {
** * * * ** * ** char a;
* ** * * * *** * * *** * your **** * *
* * * ** ** ** ** **
*** *** **
**** *** * * ** * * * * ****
**** * * *** ***** * *** * if **** * ** ** *** * *
** *** * * * * * *** ** * ** ***** ** ** * **** *
* * ****** * ** * ** }else
* * * * * ** * * * * * ** *** a);
* * ** ***** }
* * *** ***
**** *** * * return 0;
}
answered by (5.9k points)
0 1
Case 0: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.17.136
©2016-2025

Related questions

1 like 0 dislike
23 answers
[Exercise] Coding (C) - asked Oct 20, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 28130 - Available when: Unlimited - Due to: Unlimited
| 4.1k views
0 like 0 dislike
20 answers
[Exercise] Coding (C) - asked Nov 2, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 30222 - Available when: Unlimited - Due to: Unlimited
| 3.2k views
0 like 0 dislike
17 answers
[Exercise] Coding (C) - asked Oct 27, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 29618 - Available when: Unlimited - Due to: Unlimited
| 3k views
0 like 0 dislike
14 answers
[Exercise] Essay (Open question) - asked Nov 2, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 30244 - Available when: Unlimited - Due to: Unlimited
| 1.5k views
12,783 questions
183,442 answers
172,219 comments
4,824 users