Added project

This commit is contained in:
2023-06-11 00:35:07 +03:00
parent 5bfa765889
commit f06629200c
545 changed files with 44339 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class Hw2P3 : MonoBehaviour {
// Start is called before the first frame update
void Start() {
long paperThickness = 1;
long distanceFromEarthToMoon = 300000L * 1000L * 100L * 10L;
int count = 0;
while (paperThickness < distanceFromEarthToMoon) {
paperThickness *= 2;
count++;
}
Debug.Log($"{count} раз необходимо сложить бесконечный лист бумаги что бы достичь Луны");
}
}