Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. char antwort = 'j';
  2. string txt, txtneu, z;
  3. int i;
  4.  
  5. do
  6. {
  7.  
  8. //Programmcode
  9. Console.Write("Geben sie einen Text ein: ");
  10. txt = Console.ReadLine();
  11. txtneu = "";
  12. for (i = 0; i <= txt.Length - 1; i = i + 1)
  13. {
  14. z = txt.Substring(i, 1);
  15. txtneu = z + txtneu;
  16. }
  17. Console.WriteLine("Alter: " + txt);
  18. Console.WriteLine("Neuer: " + txtneu);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement