Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Tutorium 10
- // 08.01.2010 - Sebastian Daniel & Christian Flügel - Lösungen unter sdaniel.eu
- // Aufgabe 3 ‐ Zählen von Zahlen
- // Wie viele Ziffern hat eine Zahl? Das zu berechnen ist Aufgabe Deines Programms
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace prog1_tut11_a3_b
- {
- class Program
- {
- static void Main(string[] args)
- {
- int zahl = 2345656;
- string zahlstring = Convert.ToString(zahl);
- Console.WriteLine(zahlstring.Length);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement