programming-examples/c-sharp/_Basic/C# Program to Calculate Acceleration.cs
2019-11-15 12:59:38 +01:00

23 lines
493 B
C#

/*
* C# Program to Calculate Acceleration
using System;
class program
{
static void Main(string[] args)
{
int v, t, acc;
Console.WriteLine("Enter the Velocity : ");
v = int.Parse(Console.ReadLine());
Console.WriteLine("Enter the Time : ");
t = int.Parse(Console.ReadLine());
acc = v / t;
Console.WriteLine("Acceleration : {0}", acc);
}
}
/*
Enter the Velocity :
10
Enter the Time :
2
Acceleration : 5