Write a program to output the letters A B C D, each on a separate line. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Write a program to output the letters A B C D, each on a separate line.

8th Dec 2021, 1:45 PM
jahnmark amelin
6 Answers
+ 11
what have you tried? and which language do you need help with?
8th Dec 2021, 1:47 PM
Apollo-Roboto
Apollo-Roboto - avatar
+ 3
jahnmark amelin , please mention the programming language you wanted to use. thanks!
8th Dec 2021, 3:20 PM
Lothar
Lothar - avatar
+ 1
Janveer Singh this thread went cold 11 months ago, you don't have to repost what was answered by other users.
18th Nov 2022, 6:25 AM
Apollo-Roboto
Apollo-Roboto - avatar
0
Q. Write a program to output the letters A B C D, each on a separate line. ANSWER print("A\nB\nC\nD") for more doubt contact here on telegram https://youtu.be/tOWQqOWieE4 by janveer singh
18th Nov 2022, 4:59 AM
RAJVEER SINGH BAIRWA
RAJVEER SINGH BAIRWA - avatar
- 1
use for loop like this for(char c = 'A'; c <= 'Z'; c++){ printf("%c\n", c); each language will be slightly different.
9th Dec 2021, 3:08 AM
William Owens
William Owens - avatar
- 4
[print(x) for x in "ABCD"] Or print("A\nB\nC\nD") Or print("""A B C D""") Or ......... .........
9th Dec 2021, 9:04 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar