Advertisement
LePetitGlacon

FICHE 6 Exercice 7

Nov 12th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2.  
  3. namespace o
  4. {
  5.     class Program
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.            
  10.             Console.WriteLine("texte :");
  11.             string texte = Console.ReadLine();
  12.             char[] tabChar = texte.ToCharArray();
  13.            
  14.            for (int i = tabChar.Length ;i != 0;i--) {
  15.                 Console.Write(tabChar[i-1]);
  16.           }
  17.             Console.ReadKey();
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement