Print Statement #5
Answered
by
Rajaniraiyn
Rajaniraiyn
asked this question in
Proposals
-
Writes or outputs in the standard output deviceGuide: |
Beta Was this translation helpful? Give feedback.
Answered by
Rajaniraiyn
Nov 25, 2021
Replies: 4 comments
-
Existing (Inspired from Kotlin and Python)print("Hello, World!") //without newline
println("Hello, World!") //with newline
// custom end character
print("Hello, World!", end=[customCharacter]) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rajaniraiyn
-
Python Likeprint("Hello, World!") //with newline
print("Hello, World!", end="") //without newline
//custom end character
print("Hello, World!", end=[customCharacter]) |
Beta Was this translation helpful? Give feedback.
0 replies
-
C++ Likecout << "Hello, World!" << endl //with newline
cout << "Hello, World!" //without newline
//custom end character
cout << "Hello, World!" << [customCharacter] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Rust Likeprintln!("Hello, World!") //with newline
print!("Hello, World!", end="") //without newline
//custom end character
print!("Hello, World!{}", [customCharacter]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Existing (Inspired from Kotlin and Python)