Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions