Question: / / * * * * * * * * * * * * * * * * * * * * * * *

//******************************************************************************
// PROJECT:
// FILE:
//
// DESCR:
//
using namespace std;
int main(){
int num1; // num1 is not initialized
int num2=5; // num2 has been initialized to 5
cout << "Please enter an integer" << endl; cin >> num1;
cout << "num1="<< num1<<" and num2="<< num2<< endl;
if (num1= num2)
cout << "Hey, thats a coincidence!" << endl;
if (num1!= num2)
cout << "The values are not the same" << endl;
return 0; }
Lab 5 Part 1
lab5-1.cpp
This project will help you learn the difference between the C++ assignment operator = and the C++ relational equality operator ==. They are completely different operators and they work in completely different ways.
//////
// AUTHOR:
// DATE: //******************************************************************************

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!