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

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(&quot;Enter the value of vi, a &amp; t: &quot;); scanf(&quot;%f%f%f&quot;,&amp;vi,&amp;a,&amp;t); s=vi*t+1.0/2*a*t*t; return(s); }...
View Full Document

Ask a homework question - tutors are online