Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C program #include Create a NEW version of C4.1 that uses for loops to perform the same steps (well, almost the same): Prompt the

In C program

#include

Create a NEW version of C4.1 that uses for loops to perform the same steps (well, almost the same):

Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum)

Output the sum of the square of the odd integers between firstNum and secondNum

Output all odd integers between firstNum and secondNum, in descending order

Output the sum of all even integers between firstNum and secondNum

Output the integers and their squares between firstNum and secondNum, in asscending order

Output all the lowercase letters

All ranges include the end points (firstNum and secondNum).

For Example:

Enter two integers. First number must be less than the second number you enter Enter 2 integers numbers: 10 20

Sum of the squares of odd integers between 10 and 20 = 1165 Odd integers between 10 and 20 are: 19 17 15 13 11 Sum of even integers between 10 and 20 = 90 Number Square of Number 10 100 11 121 12 144 13 169 14 196 15 225 16 256 17 289 18 324 19 361 20 400

Upper case letters are: z y x w v u t s r q p o n m l k j i h g f e d c b a

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions