Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ketteshatvanyai
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Kólity Kristóf");
- Console.Write("Irj be egy számot: ");
- int a = int.Parse(Console.ReadLine());
- int x = 2;
- Console.WriteLine("A 2 hatvanyai, amelyek kisebbek mint " + a);
- while (x <= a)
- {
- Console.WriteLine("{0}", x);
- x *= 2;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement