using System;
class Acceleration
{
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 :
20
Enter the Time :
2
Acceleration : 10
-------------------------
class Acceleration
{
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 :
20
Enter the Time :
2
Acceleration : 10
-------------------------
No comments:
Post a Comment