Posted inJavascript 摂氏を華氏に変換するJavascriptプログラム Posted by By admin January 21, 2021 次の式を使用して、摂氏値を華氏に変換できます。 fahrenheit = celsius * 1.8 + 32 例:摂氏から華氏 // program to convert celsius to…
Posted inPython 摂氏を華氏に変換するPythonプログラム Posted by By admin January 21, 2021 以下のプログラムでは、摂氏で温度を取得し、華氏に変換します。 それらは次の式で関連付けられます。 celsius * 1.8 = fahrenheit - 32 ソースコード # Python Program to convert…
Posted inJavascript キロメートルをマイルに変換するJavaScriptプログラム Posted by By admin January 21, 2021 私達はことを知っています 1 キロメートルはに等しい 0.621371 マイル。 したがって、キロメートルをマイルに変換するには、次の式を使用できます。 miles = kilometers * 0.621371 例1:キロメートルからマイル // taking kilometers…
Posted inPython キロメートルをマイルに変換するPythonプログラム Posted by By admin January 21, 2021 例:キロメートルからマイル # Taking kilometers input from the user kilometers = float(input("Enter value in kilometers: "))…
Posted inJavascript 二次方程式を解くためのJavascriptプログラム Posted by By admin January 21, 2021 このプログラムは、係数がわかっている場合に2次方程式の根を計算します。 二次方程式の標準形式は次のとおりです。 ax2 + bx + c = 0, where a, b and c are…
Posted inPython 乱数を生成するPythonプログラム Posted by By admin January 21, 2021 Pythonで乱数を生成するには、 randint() 関数が使用されます。 この関数はで定義されています ランダムモジュール。 ソースコード # Program to generate a random number between 0…
Posted inJavascript 2つの変数を交換するJavaScriptプログラム Posted by By admin January 21, 2021 例1:一時変数の使用 //JavaScript program to swap two variables //take input from the users let a =…
Posted inPython 2つの変数を交換するPythonプログラム Posted by By admin January 21, 2021 ソースコード:一時変数を使用 # Python program to swap two variables x = 5 y = 10 #…
Posted inJavascript 三角形の面積を計算するJavaScriptプログラム Posted by By admin January 21, 2021 三角形の底辺と高さがわかっている場合は、次の式を使用して面積を見つけることができます。 area = (base * height) / 2 例1:底辺と高さがわかっている場合の面積 const baseValue = prompt('Enter the base…
Posted inPython 二次方程式を解くPythonプログラム Posted by By admin January 21, 2021 二次方程式の標準形式は次のとおりです。 ax2 + bx + c = 0, where a, b and c are real…