23 lines
493 B
C#
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
|