Need Help for my first C# code..! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Need Help for my first C# code..!

https://code.sololearn.com/ct6riwoYLeqR/?ref=app This is my first cs code, but not perpect yet.. I want output like this : I AM DRAGON I AM DRAGON I AM DRAGON I AM DRAGON I AM DRAGON I AM DRAGON I AM DRAGON I AM DRAGON I AM DRAGON ... loops I'm from south korea, and bad for english.. Please help me to make perpect dragon code XD

14th Aug 2019, 2:24 AM
Ling D
Ling D - avatar
9 Answers
+ 7
Prefix the generic string "I AM DRAGON" with spaces " ", with the maximum number of spaces at the median value (s), depending on whether the number is odd or even. Use Console.Writeline to direct the output to the console.
14th Aug 2019, 3:05 PM
Sanjay Kamath
Sanjay Kamath - avatar
15th Aug 2019, 11:25 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
LingD Thanks 🙂
15th Aug 2019, 1:59 AM
Sanjay Kamath
Sanjay Kamath - avatar
16th Aug 2019, 2:00 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 2
I'm still not getting how you expect this program to work 😁 Can you tell me, how the output was supposed to look like when I enter an odd number or even number? I can't promise you anything, but if there's something I can do to help, then I would try ...
14th Aug 2019, 11:05 PM
Ipang
+ 1
I haven't learned c++ yet but I hope you figure it out, i think it will look amazing
14th Aug 2019, 2:25 AM
Astral
+ 1
Coding is wonderful
14th Aug 2019, 8:54 PM
Anthony Ekeocha
Anthony Ekeocha - avatar
+ 1
Sanjay Kamath wow awesome!
15th Aug 2019, 10:22 PM
Ling D
Ling D - avatar
+ 1
You can check my code (from line 70) for reference. You can change the "*"s you see to a string you wish to print. https://code.sololearn.com/c4wjoDvp9H1v/?ref=app
16th Aug 2019, 11:17 AM
Ketchup🍅
Ketchup🍅 - avatar