Question: i expected the second value as 120 . but program found 300 . I have error . Pls find out the errors and write program

 i expected the second value as 120 . but program found

i expected the second value as 120 . but program found 300 . I have error . Pls find out the errors and write program again

TOP-HTKCSLI /home $ ./a.exe Total value is:300 Total value is: 300 Dosya Dzen Biim Grnm Yardm #include 7 using namespace std; // function declaration int sum(int a, int b-20) { int result; result wa+b; return (result); Lenovo LAPTOP-HTJKCSLI /home S ge max.cpp max.cpp: 'int maino' ilevinde: max.cpp:17:1: hata: "result' was not declared in this scope; did you mean 'resul ti'? 17 | result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!