Code:Hi all! I got a problem with my code. Unfortunately, I have to submit this assignment tmr, so I really need help, >.< Here is the code : /* This program is used to determine how deep the water will be when 1000 cubic feet per second is flowing through the channel based on user's guess*/ #include <stdio.h> /* define printf and scanf */ #include <math.h> /* define mathematical operations */ #define N 0.014 #define W 15 #define cons 1.486 double area (double depth) ; double hydraulic_radius (double depth , double cross_area) ; double flow (double cross_area, double power_radius, double power_S) ; /* define function named flow */ double pow(double radius, double Y_1) ; double pow(double S, double Y_2) ; main() { /* define variable that will be used */ double depth ; /* variable named depth, with type = double */ double cross_area ; double radius ; double waterflow ; double Y_1 ; double Y_2 ; double power_radius ; double power_S ; double S ; /* mention the background and the purpose of the program */ printf ("A concrete channel to bring water to a lake is being designed \n") ; printf ("It will have vertical walls and be 15 ft wide, 10 ft deep, have a slope 0.0015, and a roughness coefficient 0.014 \n") ; printf ("This program will determine how deep the water will be when 1000 cubic feet per second is flowing through the channel . \n") ; printf ("Users are requested to guess a depth. \n") ; /* get the depth guessing from user */ printf ("Input your guess for the depth of the water in the channel ---> ") ; /* store the inputted value in variable named depth */ scanf ("%lf", &depth) ; while (10 <= depth) { printf ("Invalid guess. \n"); printf ("Your guess is exceeding the channel depth. \n"); printf ("Please input again your guess for the depth of the water in the channel ---> "); scanf ("%lf", &depth) ; } cross_area = area (depth) ; radius = hydraulic_radius (depth , cross_area) ; Y_1 = 2.0/3.0 ; power_radius = pow (radius , Y_1) ; S = 0.0015 ; Y_2 = 1.0/2.0 ; power_S = pow (S , Y_2) ; waterflow = flow (cross_area, power_radius, power_S) ; while (1001 <= waterflow) { printf ("Incorrect depth. Please guess a little lower. \n"); printf ("Please input again your guess for the depth of the water in the channel ---> "); scanf ("%lf", &depth) ; } while (waterflow <= 999) { printf ("Incorrect depth. Please guess a little higher. \n"); printf ("Please input again your guess for the depth of the water in the channel ---> "); scanf ("%lf", &depth) ; } {printf ("Yeah! You got it! CONGRATULATION! ^0^ \n"); {printf ("%9.3f is the deep of the water when %9.3f cubic feet of water per second is flowing through the channel \n", depth,flow); system ("PAUSE") ; return 0 ; } double area (double depth) { return (depth*W) ; } double hydraulic_radius (double depth, double cross_area) { return (cross_area/(2*depth + W)) ; } /* function named flow, used to calculate the water flow based on Manning's equation */ double flow (double power_radius, double cross_area, double power_S) { return ((cons/N)*cross_area*power_radius*power_S) ; } When I tried to compile them, the program keep highlighting the last curly brace, and sending error message "syntax error at end of input". I don't know what to do, since I'm new in C programming. (and here as well, so I'm terribly sorry if my post doesn't really follow the guidelines, I skipped reading some of them since I'm in a bit hurry,,,so sorry,,,I'm going to read it after this though,,,) Anyone that could help? Thank you so much before. ^^