Advertisement
arcum

Omgekeerde Input

Nov 17th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Loop_opdracht
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string input;
  14. string output = "";
  15. Console.WriteLine("Wat wilt u herhaald zien worden in omgekeerde volgorde?");
  16. input = Console.ReadLine();
  17. for (int i = input.Length -1; i >= 0; i--)
  18. {
  19. output += input[i];
  20. }
  21. Console.WriteLine("Uw invoer in omgekeerde volgorde:" + output);
  22. Console.ReadKey();
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement