using System ;
namespace Prog
{
class Prog
public static int d { get; set; }
public static int n { get; set; }
static void Main(string[] args)
d = int.Parse(Console.ReadLine ()) ;
n = int.Parse(Console.ReadLine ()) ;
for (int j = 0; j <= n; n++)
d *= 2;
}
Console.WriteLine (d) ;
Console.ReadKey() :
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
using System ;
namespace Prog
{
class Prog
{
public static int d { get; set; }
public static int n { get; set; }
static void Main(string[] args)
{
d = int.Parse(Console.ReadLine ()) ;
n = int.Parse(Console.ReadLine ()) ;
for (int j = 0; j <= n; n++)
{
d *= 2;
}
Console.WriteLine (d) ;
Console.ReadKey() :
}
}
}