Code:
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);
}
}
Output:
Enter the Velocity :
10
Enter the Time :
2
Acceleration : 5
More C# Programs: