Find any five syntax errors from the following program. Write line number and correct statement in thespace provided below. 1 #include using namespace std; int main() const xx-33; int one, two, i; bool is_m = true; cout << "Enter two numbers : cin >> ONE >> two; 3 4. 5. 8. %3D cout << numbers in and <

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
%23
cout << "Enter two numbers :
cin >> ONE >> two;
numbers in
< \n;
%3D
%3D
%3D
are:
%23
6.
cout << "
非
<< one <<
and
<<two <<
10
while (one < two && one =! 0)
true;
=- 0 two ==
11
is m =
1)
false; }
if (one
12
13
14
15
16
17
{ is m =
else
for (i
2, i <= one / 2; ++i)
18
19
if (one % i
(is_m =
break;
false;
20
21
22
23
24
25
26
27
28
29
if (is_m)
cout << one <<
print the result
++one;
cout<<"End of the printing of <<one<<" and
"<<two3;
return 0;
30
Paragraph
78
Transcribed Image Text:%23 cout << "Enter two numbers : cin >> ONE >> two; numbers in < \n; %3D %3D %3D are: %23 6. cout << " 非 << one << and <<two << 10 while (one < two && one =! 0) true; =- 0 two == 11 is m = 1) false; } if (one 12 13 14 15 16 17 { is m = else for (i 2, i <= one / 2; ++i) 18 19 if (one % i (is_m = break; false; 20 21 22 23 24 25 26 27 28 29 if (is_m) cout << one << print the result ++one; cout<<"End of the printing of <<one<<" and "<<two3; return 0; 30 Paragraph 78
Find any five syntax errors from the following program.
Write line number and correct statement in the space provided below.
#include <iostream>
using namespace std;
int main() {
const xx-3S
int one, two, i;
bool is m
cout << "Enter two numbers
cin >> ONE >> two;
3.
4
6.
= true;
8.
6.
cout <<
numbers in
<< one <<
and
<< two <<
%23
are:
<< \n;
while (one <two && one =! 0)
is m = true;
if (one
10
11
12
two ==
1)
13
is m = false;
14
else
15
16
for (i = 2, i <= one
2; ++i)
17
18
if (one %i ==D
{ is m =
break;
19
false;
20
21
22
23
24
if (is m)
TO seardn
Transcribed Image Text:Find any five syntax errors from the following program. Write line number and correct statement in the space provided below. #include <iostream> using namespace std; int main() { const xx-3S int one, two, i; bool is m cout << "Enter two numbers cin >> ONE >> two; 3. 4 6. = true; 8. 6. cout << numbers in << one << and << two << %23 are: << \n; while (one <two && one =! 0) is m = true; if (one 10 11 12 two == 1) 13 is m = false; 14 else 15 16 for (i = 2, i <= one 2; ++i) 17 18 if (one %i ==D { is m = break; 19 false; 20 21 22 23 24 if (is m) TO seardn
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Guessing the output
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education