blob: 570f8aaca30813270502026f70b20616d347fa4a (
plain)
1
2
3
4
5
6
7
8
|
//Example 3_6
clc();
clear;
//To find the time taken by a car to travel
x=98 //uniys in meters
a=4 //units in meters/sec^2
t=sqrt((2*x)/a) //units in sec
printf("Time taken by a car to travel is T=%d sec",t)
|