Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Created by SharpDevelop.
- * User: 10.A-I
- * Date: 2019.01.14.
- * Time: 9:29
- *
- * To change this template use Tools | Options | Coding | Edit Standard Headers.
- */
- using System;
- namespace binaris_atvaltas_decimalisra
- {
- class Program
- {
- public static void Main(string[] args)
- {
- Console.WriteLine("Adj meg egy bináris számot:");
- Console.WriteLine();
- string szam= Console.ReadLine();
- string szam2 = Convert.ToInt32(szam,2).ToString();
- Console.WriteLine("---------------------------");
- Console.WriteLine("Ez a szám decimálisan: {0}",szam2);
- Console.ReadKey(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement