{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

T-4(3-2) - float vi,a,t,s printf"Enter the value of vi...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<stdio.h> #include<conio.h> float distance(); f void main(void) { float s; clrscr(); s=distance(); printf("distance=%f",s); getch(); } float distance (void)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { float vi,a,t,s; printf("Enter the value of vi, a & t: "); scanf("%f%f%f",&vi,&a,&t); s=vi*t+1.0/2*a*t*t; return(s); }...
View Full Document

{[ snackBarMessage ]}