C program to calculate velocity ( v^2=u^2+2as )