Question: 1 ) Create a program with a for loop to count from 1 to 1 0 0 , increment 1 . Use the loop to

1) Create a program with a for loop to count from 1 to 100, increment 1. Use the loop to calculate the sum of the odd numbers from 1 to 100.
2) Perform the same tasks using a while loop.
3) Create a program that asks the user to input a number. Compare the number to each number in the list below, and tell the user if it is greater than, equal to, or less than each number.
3,6,12,8,1000.
Matlab

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!