Question: 1 . Write a C + + program that does the following: a . Create a C + + file with the name problem 4
Write a C program that does the following:
a Create a C file with the name problemcpp
b Write the function areVeryDifferentwhich determines whether the two integer parameters are very different if they differ by more than
c Type in the following main function into your C program file:
int main
int x y z ;
if areVeryDifferentx y
cout x and y are very different." endl;
if areVeryDifferentx z
cout x and z are very different." endl;
if areVeryDifferenty z
cout y and z are very different." endl;
return ;
d The output from this program is:
y and z are very different.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
