1 answer

IN MATLAB CHALLENGE ACTIVITY 25.5.1: For loops. Reset Write a for loop that prints from initialNumber...

Question:

IN MATLABCHALLENGE ACTIVITY 25.5.1: For loops. Reset Write a for loop that prints from initialNumber to finalNumber. Ex: initialNumber-3 and finalNumber 1 outputs 3 -2 -1 0 1 I #include <stdio.h> 3 int main(void) t 4 int initialNumber; 6 int i; int finalNumber; initialNumber--5 11 for 12 13 14 Your solution goes heref printf(%d , i); return 161 17 5 Check Next

CHALLENGE ACTIVITY 25.5.1: For loops. Reset Write a for loop that prints from initialNumber to finalNumber. Ex: initialNumber-3 and finalNumber 1 outputs 3 -2 -1 0 1 I #include <stdio.h> 3 int main(void) t 4 int initialNumber; 6 int i; int finalNumber; initialNumber--5 11 for 12 13 14 Your solution goes heref printf("%d ", i); return 161 17 5 Check Next

Answers

here is the complete code..

===============================================================

#include<stdio.h>

int main(void)

{

int initialNumber;

int finalNumber;

int i;

initialNumber = -5;

finalNumber = 6;

for(i = initialNumber; i<=finalNumber; i++)

{

printf("%d ", i);

}

return 0;

}


===============================================================

Sample Output:

-5 -4 -3 -2 -1 0 1 2 3 4 5 6  

===============================================================

KIndly Check and Verify Thanks..!!!

.

Similar Solved Questions

1 answer
A machine can be purchased for $50,000 and used for five years, yielding the following net...
A machine can be purchased for $50,000 and used for five years, yielding the following net incomes. In projecting net incomes, straight-line depreciation is applied, using a five-year life and a zero salvage value. Year 2 Net income Year 1 $3,300 $8,300 Year 3 $30,000 Year 4 $12,400 Year 5 $33,200 C...
1 answer
Could use some help 1. Fill in the missing reagent(s) and/or products: (13 points) он A....
Could use some help 1. Fill in the missing reagent(s) and/or products: (13 points) он A. H20 0 1. CH3MgBr 2. H30θ 1. NaCN/(CH3CH22CuLi intramolcular Aldol Condensation Reaction molecular structure of the starting acyclic carbonyl compond EtOH NaOH EtOH 2. H /H20 B. Br 1. KOH NH2 N...
1 answer
3) The system in Figure below consists of 1200 m of 5 cm cast-iron pipe, two...
3) The system in Figure below consists of 1200 m of 5 cm cast-iron pipe, two 45° and four 90° flanged long-radius elbows, a fully open flanged globe valve, and a sharp exit into a reservoir. If the elevation at point 1 is 400 m, what gage pressure is required at point 1 to deliver 0.005 m3/s...
1 answer
Figure Q2(b) shows the composite wall of a freezing plant which consists of a 10 cm...
Figure Q2(b) shows the composite wall of a freezing plant which consists of a 10 cm layer of corkboard on the inside and 14 cm layer of concrete on the outside, with an area of 1 m2. The temperature on the inside corkboard surface is -20 °C, and the temperature on the outside concrete surface is...
1 answer
Compute the inventory amounts at December 31, 2017 and 2018, using dollar value LIFO inventory method....
Compute the inventory amounts at December 31, 2017 and 2018, using dollar value LIFO inventory method. Problem 8-9 On January 1, 2017, Sweet Wholesalers Inc. adopted the dollar-value LIFO inventory method for income tax and external financial reporting purposes. However, Sweet continued to use th...
1 answer
A Tesla coupon bond with a face value of $1,000 has a coupon rate of 6%...
A Tesla coupon bond with a face value of $1,000 has a coupon rate of 6% with annual coupons and it will mature in 5 years. If it is currently trading at $813.5, what is its yield-to-maturity? Round to the tenth of a percent (e.g., 4.32% = 4.3) [Hint: Use Excel's "rate" function as explai...
1 answer
Complete this test over the Lecture 1 materials and resources. For your individual quiz this week...
Complete this test over the Lecture 1 materials and resources. For your individual quiz this week you will writing an essay. In your essay you will describe a team that you have been on (family, work, sports, etc.,) or a company team that you would want to be a part of. You will incorporate at least...
1 answer
сиргекыопог ше оar ueuaенстgу соmamea uue тоu. 2. Given the following initial boundary value problem Section...
сиргекыопог ше оar ueuaенстgу соmamea uue тоu. 2. Given the following initial boundary value problem Section 1.2 u u(r, 0 f(x) (L, t) B (0, t) 1 Әт &#...
1 answer
NOT AN EXAM OR TEST FOLLOWING HONOR CODE . GIVING OUT GOOD FEEDBACK Question 5 1...
NOT AN EXAM OR TEST FOLLOWING HONOR CODE . GIVING OUT GOOD FEEDBACK Question 5 1 pts 1) A wire is formed into 6/10th of a circle that has a radius of 5m. The wire carries a current of 3A. Determine the magnetic field at the center of the circular shape? 1.4HOT O 0.18MOT O 0.32HOT O 0.12MT...
1 answer
A nurse assesses a client who is experiencing an acid-base imbalance. The client's arterial blood gas...
A nurse assesses a client who is experiencing an acid-base imbalance. The client's arterial blood gas values are pH 7.33, PaO2 88 mm Hg. PaCO2 38 mm Hg, and HCO3- 19 mEq/L. Which assessment should the nurse perform first? A. Cardiac rate and rhythm B. Skin and mucous membranes C. Musculoskeletal...
1 answer
Please explain why Suppose that we have three voters and four alternatives, and suppose the individual...
please explain why Suppose that we have three voters and four alternatives, and suppose the individual preference lists are as follows: Voter 1: abcd Voter 2: cabd Voter 3: b dca Suppose that the social choice procedure being used is sequential pairwise voting with a fixed agenda, and that you have...
1 answer
How monu liscense olates Hou nany cades Cam are there consisting ‘ ou make tron the...
How monu liscense olates Hou nany cades Cam are there consisting ‘ ou make tron the leters oloused b 3 num leter s in Hawai? pers uwhot if no leter or nunlber mau be cepated?...
1 answer
The index model has been estimated for stocks A and B with the following results: RA...
The index model has been estimated for stocks A and B with the following results: RA = 0.01 + 0.8RM + eA. RB = 0.02 + 1.1RM + eB. σM = 0.30 σ(eA) = 0.20 σ(eB) = 0.10. The covariance between the returns on stocks A and B is Select one: a. 0.0384. b. 0.0406. c. 0.1920. d. 0.0050. e. ...
1 answer
Problem 11A-8 Applying Overhead; Overhead Variances [LO11-3, LO11-4] Lane Company manufactures a ...
Problem 11A-8 Applying Overhead; Overhead Variances [LO11-3, LO11-4] Lane Company manufactures a single product that requires a great deal of hand labor. Overhead cost is applied on the basis of standard direct labor-hours. Variable manufacturing overhead should be $2.40 per standard direct labor-ho...
1 answer
Assignment Submission & Scoring Assignment Submission For this assignment, you submit answers by question parts. The...
Assignment Submission & Scoring Assignment Submission For this assignment, you submit answers by question parts. The number of submissions remaining for each question part only changes if you submit or change the answer Assignment Scoring Your last submission is used for your score. -/3 points T...
2 answers
Rodriguez, a college instructor, can grade his class papers in 3 hours while it takes his assistant 4 1/2 hours
mr. Rodriguez, a college instructor, can grade his class papers in 3 hours while it takes his assistant 4 1/2 hours.? If Mr. Rodriguez graded the papers for 1 hour and then left the job for his assistant to complete, how long will it take his assistant to finish grading papers?...
1 answer
Tony and Suzie graduate from college in May 2021 and begin developing their new business. They...
Tony and Suzie graduate from college in May 2021 and begin developing their new business. They begin by offering clinics for basic outdoor activities such as mountain biking or kayaking. Upon developing a customer base, they’ll hold their first adventure races. These races will involve four-pe...