Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n, i;
- Console.WriteLine("Введите число n ");
- n = Convert.ToInt32(Console.ReadLine());
- i = 0;
- while (i < n)
- {
- i += 1;
- }
- //while (a < n)
- //{
- // a *= 3;
- //}
- //Console.WriteLine("" + (a == n));
- //while (n % 3 == 0)
- //{
- // n /= 3;
- //}
- //Console.WriteLine("" + (n == 1));
- //if (n == a)
- //{
- // Console.WriteLine(" True ");
- //}
- //else
- //{
- // Console.WriteLine(" False ");
- //}
- //double a, b, sum, x;
- //int n;
- //n = 0;
- //Console.WriteLine("Введите число a ");
- //a = Convert.ToDouble(Console.ReadLine());
- //Console.WriteLine("Введите число b ");
- //b = Convert.ToDouble(Console.ReadLine());
- //sum = 0;
- //while (sum <= a)
- //{
- // sum += b;
- // n += 1;
- //}
- //sum -= b;
- //n -= 1;
- //x = a - sum;
- //Console.WriteLine(" кол-во отрезков b " + n);
- //Console.WriteLine(" остаток в a " + x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement