int main(void){ int diagram; diagram = draw_hor_diag_of_bb(4,3,'o','*'); printf("\nl"); }
int main() { /* ana fonksiyonun baslangıcı */ int first_height=4; int feet_height=3; char the_peak_point='H'; char the_road_point='|'; /* degiskenlerin sonu */ printf("\nCounter %d\n",draw_hor_diag_of_bb(first_height,feet_height, the_peak_point,the_road_point)); return 0; /* ana fonksiyonun sonu */ }
int main (void) { int first_height; /*Length of first hight*/ int feet_height; /*Length of feet hight*/ int length; /*The length of the diagram axis*/ int total_ch; /*Total number of characters*/ char the_peak_point; /*Peak point*/ char the_road_point; /*Road point*/ /*############################FIRST TIME CALLING##############################*/ /*Input values*/ printf("\n<<<<<<<<<For first ball>>>>>>>>>"); printf("\nPlease enter the first_height of the ball: "); scanf("%d", &first_height); printf("Please enter the feet_height of the ball: "); scanf("%d", &feet_height); printf("Please enter the the_peak_point of the ball: "); scanf(" %c", &the_peak_point); printf("Please enter the the_road_point of the ball: "); scanf(" %c", &the_road_point); /*Print the screen steps of bouncing ball and return total number of characters*/ total_ch = draw_hor_diag_of_bb(first_height, feet_height, the_peak_point, the_road_point); /*The length of the diagram axis*/ length = lenght_function(first_height); /*Print the screen diagram axis*/ finish_diag(length); printf("\n\nTotal number of characters: %d\n\n", total_ch); /*############################SECOND TIME CALLING#############################*/ /*Input values*/ printf("\n<<<<<<<<<For second ball>>>>>>>>>"); printf("\nPlease enter the first_height of the ball: "); scanf("%d", &first_height); printf("Please enter the feet_height of the ball: "); scanf("%d", &feet_height); printf("Please enter the the_peak_point of the ball: "); scanf(" %c", &the_peak_point); printf("Please enter the the_road_point of the ball: "); scanf(" %c", &the_road_point); /*Print the screen steps of bouncing ball and return total number of characters*/ total_ch = draw_hor_diag_of_bb(first_height, feet_height, the_peak_point, the_road_point); /*The length of the diagram axis*/ length = lenght_function(first_height); /*Print the screen diagram axis*/ finish_diag(length); printf("\n\nTotal number of characters: %d\n\n", total_ch); /*############################THIRD TIME CALLING##############################*/ /*Input values*/ printf("\n<<<<<<<<<For third ball>>>>>>>>>"); printf("\nPlease enter the first_height of the ball: "); scanf("%d", &first_height); printf("Please enter the feet_height of the ball: "); scanf("%d", &feet_height); printf("Please enter the the_peak_point of the ball: "); scanf(" %c", &the_peak_point); printf("Please enter the the_road_point of the ball: "); scanf(" %c", &the_road_point); /*Print the screen steps of bouncing ball and return total number of characters*/ total_ch = draw_hor_diag_of_bb(first_height, feet_height, the_peak_point, the_road_point); /*The length of the diagram axis*/ length = lenght_function(first_height); /*Print the screen diagram axis*/ finish_diag(length); printf("\n\nTotal number of characters: %d\n\n", total_ch); return 0; }