C# Beginner Challenge

Updated on July 18, 2016 in [C] Beginner
Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on Reddit0
12 on July 16, 2016

Challenge:

Write a program that will first ask you for a word and than for a number. After that the program must send you back a new word.
For example, you entered word “Hello World”, and a number “1”. What u will get back is a word “ello WorldH”, which means that all the letters went for one place to the left. So if you would enter number 3, than all the letters would get transmitted for 3 places to the left and so on.

So this is the challenge, if you accept it, good luck with writing a code and I hope it won’t be too hard for beginners 😀

I will write it down how i did it, if anyone will ask me to do so.

  • Liked by
  • BinaryBeal
  • Moddwyn
  • Nuldius
  • Dion Dokter
Reply
1 on July 16, 2016

Haha, I like this challenge! Thanks for posting it 😀

on July 16, 2016

Haha np 😀

Show more replies
  • Liked by
Reply
Cancel
1 on July 16, 2016

I thenk yuo shuld do anglesh shallange

on July 17, 2016

… what makes you think that?

Show more replies
  • Liked by
Reply
Cancel
7 on July 17, 2016
Click to Expand
on July 17, 2016

Nice 😀 I wrote this program in a diffrent way, because i’m a begnner and I didn’t know that it can be wrote in such an easy way 😀 thx for you answer.

Here is how i did it:

Click to Expand
on July 17, 2016

… 😀 What are those <div> there? 😛

Guru
on July 17, 2016

I don’t know. I’ve tried to fix it… But it didn’t work…
So I removed the code tags, because for now this is more readable.

on July 17, 2016

ok 😛

Devoted
on July 18, 2016

Please put it as a spoiler, so people will be able to try to solve it without seeing your answer. 😉 Do you know how to do it?

on July 18, 2016

Done. Didn’t know that existed, as it isn’t a button like the rest of the formatting things here.

Devoted
on July 18, 2016

Yeah, it should definitely be there…

Show more replies
  • Liked by
Reply
Cancel