Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to do this program in C language. Thank you 1. Program using if-statement: Write a simple program to ask the user for a

image text in transcribed

I need to do this program in C language. Thank you

1. Program using if-statement: Write a simple program to ask the user for a number below 500 print if the number is divisible by 13 or not [10 points ] 2. Program using do-while loop Ask the user for a number in the range 1 to 100. If he enters any other number, loop back and prompt again if the number is in between 1 to 100, Just print the number he entered. [10 points ] 3. Program using for loop using for loop, compute the sum of all even numbers from 100 until 170 (inclusive) 1 10] 4. Program using for loop and switch case: print each number from 1 to 100 if it is divisible by 3. If it is divisible, print the number. If it is not, just ignore. You should use for loop and switch case. 10 points]

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

More Books

Students also viewed these Databases questions

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago