1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
How many errors does the following program contain?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Line 2 : # before include
Line 4 : no type declaration for main (such as void)
Line 7 : no semicolon after declaration of the float variables
Line 10 : semicolon not closed
Line 12 : "prinf" instead of printf
Line 13 : no semicolon
Line 15 : improper brackets