Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You need to find one error and you need to fix it. What is the output of this code? #include #include int mainot int number;

image text in transcribed
image text in transcribed
image text in transcribed
You need to find one error and you need to fix it. What is the output of this code? #include #include int mainot int number; inti: number = 7; for(i = 10; i>=0; i--X if(1%2==0) number = per + i)* 2: else{ number = (number - i); } } print("%d " number); } Your answer: You need to find 5 errors of this code and write line numbers seperating with commas (Ex: 1,2,3) #include 4 6 int main { int choice int pos_count = 0; int neg_count = 0; choice = -7; printf("Choice = %d ", choice); while (choice 0) { pos_count++, ) else { neg_count++; } choice = choice +2. 17 18 19 20 21 22 printf("Positive Count = 96d Negative Count 96d " UDLU 0, 7 8 9 10 11 12 13 14 15 16 int neg_count = 0; choice = -7; printf("Choice = %d ", choice); while (choice 0) { pos_count++, } elsel) { neg_count++; } choice = choice + 2, } printf("Positive Count = %d Negative Count = %d ", pos_count, neg_count) return 0; } 17 18 19 20 21 22 23 24 Your

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago