Question: You dont need omega for this, u can do it with the software what you have and give me the code: In other words for
You dont need omega for this, u can do it with the software what you have and give me the code:
In other words for 1) Give me the HTML code, 2) give me the CGI code

3. (1) Prepare an HTML file, prob3.html, with the following content: This program computes 1 + 2+ 3+ + n where n is entered from the browser
#include #include int main() float m,n; /* The variable input takes parameters passed by HTML * char *input - getenv("QUERY_STRING" ); /* We now separate m and n from one long string of "input"* sscanf(input, "number1=&E&number2-%f", &m, &n); /* CGI script must spit the following string no matter what ! */ printf("Content-type: text/html "); /*Any printf command hereafter is output to the web browser. */ printf ("The sum is %f" ,m+n); return 0; 3. (1) Prepare an HTML file, prob3.html, with the following content: This program computes 1 + 2+ 3+ + n where n is entered from the browser #include #include int main() float m,n; /* The variable input takes parameters passed by HTML * char *input - getenv("QUERY_STRING" ); /* We now separate m and n from one long string of "input"* sscanf(input, "number1=&E&number2-%f", &m, &n); /* CGI script must spit the following string no matter what ! */ printf("Content-type: text/html "); /*Any printf command hereafter is output to the web browser. */ printf ("The sum is %f" ,m+n); return 0