Flowchart and Algo
Flowchart and Algo
Start
ofa
Area of Circle
End
Algorithm
namespace area_of_circle
{
class Program
{
static void Main(string[] args)
{
double radius, area;
Console.WriteLine("Area of circle is (Math.PE *
radius * radius)");
Console.WriteLine("Enter Radius: ");
radius = Convert.ToDouble(Console.ReadLine());
area = Math.PI * radius * radius;
Console.WriteLine("\nArea of circle is: " +
area);
Console.ReadKey();
}
}
}
Volume of Hemisphere
Start
ofa
Formula is V=(2/3*PI*(radius^))
Volume of hemisphere
End
Algorithm
Start
ofa
Formula is V=(2/3*PI*(radius^))
Volume of hemisphere
End
Algorithm
namespace VolumeofHemisphere
{
class Program
{
static void Main(string[] args)
{
double r, vsp, volume;
double PI = 3.141592653589793;
Console.WriteLine("Enter the Radius of the
Sphere:");
r = Convert.ToDouble(Console.ReadLine());
vsp =( 4.0/3)* PI * r * r*r;
volume = (2.0 / 3) * PI * r * r * r;
Console.WriteLine("Volume of Sphere is:
{0}",vsp);
Console.WriteLine("Volume of Hemisphere is: {0}",
volume);
Console.Read();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VolumeofHemisphere
{
class Program
{
static void Main(string[] args)
{
Double radius,raisetothe,formula,pi,area;
String radString;
Console.WriteLine(“volume of Hemisphere”);
Radstring =Console.ReadLine();
Radius = Convert.ToDouble(Radstring);
Formula = 0.666666;
Pi = 3.14159;
Console.WriteLine(“The volume of