Suri

Suri

  • NA
  • 113
  • 13k

why i couldnt get expected output? what's wrong?

Jul 10 2021 5:48 AM

why i couldnt get expected output? what's wrong?

#include <stdio.h>
int main(){
  float t=3.0;
  const g = 10;
  float D = 1/2*g*t*t;
  printf("Distance is %f",D);
  return 0;
  
  
}

 


Answers (3)