#include <stdio.h> #include <math.h> #define G 32 int main(){ int i=0, t=1, distance, D=(1/2)*G* pow(1,2), height=distance-D; printf("What is the height of the dragon's nest in feet?\n "); scanf("%d", &distance); printf("Time\tAltitude\n"); if (distance<= 0) printf("0\t0\n"); while (distance>0) { D=distance-D; printf("%d\t%d.\n",t, D); } return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)