Posts

Showing posts from September, 2023

CODE TO PRINT FIRST EQUAION OF MOTION IN C#

  CODE TO PRINT FIRST EQUAION OF MOTION IN C# CODE: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace expression_program {     class Program     {         static void Main(string[] args)         {                 Console.Write("Enter initial velocity (vi): ");                 double vi = Convert.ToDouble(Console.ReadLine());                 Console.Write("Enter acceleration (a): ");                 double a = Convert.ToDouble(Console.ReadLine());                 Console.Write("Enter time (t): ");                 double t = Convert.ToDouble(Console.ReadLine());                 double vf = vi + a * t;                 Console.WriteLine("The Final Velocity (vf):"+vf);         } } }

Calculate the area of Circle.

Image
  Calculate the area of Circle.   CODE: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace area_of_circle {     class Program     {         static void Main(string[] args)         {             double radius = 2.0;              double area= Math.PI * Math.Pow(radius,2 );             Console.WriteLine($"The Area of Circle :{area}");         }     } } output:

Calculate the temperature in Celsius in C#.

Image
  Calculate the temperature in Celsius using integer values.   C = 5/9 * (F – 32) CODE: output: