Question: I keep getting the same error and can't fix it. please help!! The error is in line 1 Preprocessor directive expected DK ConsoleApplication1 - Microsoft
I keep getting the same error and can't fix it. please help!! The error is in line 1 Preprocessor directive expected 
DK ConsoleApplication1 - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Test Analyze Window Help ( 21 Quick Launch (Ctrl Debug Any CPU Start Toolbox x Program.cs ch ToolboxProject 24 #nclude 2 double calculatehypotenuse(double a, double b) There are no usable controls in this group Drag an item onto this text to add it to the 4. 6 7 8 //take a and b as arguments which represents the sides // length of hypotenuse is given by c^2-"2+b"2 double h 0.0; 10 12 13 14 15 16 17 18 return h; // Eg: a-5,b-3 h-sqrt (25+9)-sqrt (34)-5.83 100 % Error List 1 Error0 Warnings Messages Build+ IntelliSense Searc File Progran Entire Solution Code Description A Project Project 24 Preprocessor directive expected Error List Task List C# Interactive Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
