#include<stdio.h>
void main()
{
int t,u[5],a[5],i,s;
printf("enter a value of t");
scanf("%d",&t);
printf("enter values of u and a");
for (i=0;i<5;i++)
{
scanf("%d",&u[i]);
scanf("%d",a[i]);
s=u[i]*t+1/2 a[i]*t*t;
printf("value of u is %d \n value of a is %d \n value of t is %d \n value of s is %d \n", u[i], a[i], t, s);
}
}</stdio.h>
A quote was missing in
printf
and I removed a
}
at the end.
Compiler should be happier now.
I recommend a professional text editor, syntax coloring would have show the first problem and parenthesis matching would have spot the second.