Write a C# Sharp program that takes the radius of a sphere as input and calculate and display the surface and volume of the sphere
- برمجة سي شارب
- برمجة
- 2021-05-17
- MarwaMohammed
الأجوبة
using System;
public class Exercise8
{
public static void Main()
{
float r;
float pi = 3.1415926535f;
Console.Write("Radius: ");
r = Convert.ToSingle(Console.ReadLine());
Console.WriteLine( 4 * pi * (r * r) );
Console.WriteLine( 4f/3f * pi * (r * r * r));
}
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال

