Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Task18
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Random random = new Random();
- int randomMin = 0;
- int randomMax = 101;
- int number = random.Next(randomMin,randomMax);
- int numberDegreeStartValue = 2;
- int degree = 0;
- int numberDegreeValue = 1;
- Console.WriteLine("Заданное число - " + number);
- while (number > numberDegreeValue)
- {
- degree++;
- numberDegreeValue *= numberDegreeStartValue;
- Console.WriteLine(degree + " " + numberDegreeValue);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement