please can you write a professional comment using the // command  for this c++ code thank you #include using namespace std; int main(){   int num1= 0, num2 =0, num3 =0;   int smallest =0;   cout << "please enter three integer number : ";   cin >> num1 >> num2 >> num3;   smallest = num1;   if (num2 < smallest)    smallest = num2;   if (num3 < smallest)    smallest = num3;   cout << "The smallest number is : " << smallest << endl;   return 0; }

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 5E: Write a C# program named InchesTOCentmeters that declares a named constant that holds the number of...
icon
Related questions
Question

please can you write a professional comment using the // command  for this c++ code thank you

#include <iostream>

using namespace std;

int main(){
  int num1= 0, num2 =0, num3 =0;
  int smallest =0;

  cout << "please enter three integer number : ";
  cin >> num1 >> num2 >> num3;

  smallest = num1;
  if (num2 < smallest)
   smallest = num2;
  if (num3 < smallest)
   smallest = num3;

  cout << "The smallest number is : " << smallest << endl;

  return 0;
}

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT