Advertisement
Guest User

sDaniel

a guest
Jan 8th, 2010
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. // Tutorium 10
  2. // 08.01.2010 - Sebastian Daniel & Christian Flügel -  Lösungen unter sdaniel.eu
  3. // Aufgabe 3 ‐ Zählen von Zahlen
  4.  
  5. // Wie viele Ziffern hat eine Zahl? Das zu berechnen ist Aufgabe Deines Programms
  6.  
  7.  
  8.  
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Linq;
  12. using System.Text;
  13.  
  14. namespace prog1_tut11_a3_b
  15. {
  16.     class Program
  17.     {
  18.         static void Main(string[] args)
  19.         {
  20.             int zahl = 2345656;
  21.             string zahlstring = Convert.ToString(zahl);
  22.             Console.WriteLine(zahlstring.Length);
  23.             Console.ReadKey();
  24.  
  25.         }
  26.     }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement