Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/ / * * * * * * * * * * * * * * * * * * * * * * *

//******************************************************************************
// 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

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

Step: 3

blur-text-image

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

1. Define mass and mediated communication

Answered: 1 week ago