Question: Write a complete prograntin C, with good programming style, that will: 1. Prompt the user to enter an integer, then read it in and store

 Write a complete prograntin C, with good programming style, that will:
1. Prompt the user to enter an integer, then read it in
and store it in a variable. 2. If the number they entered

Write a complete prograntin C, with good programming style, that will: 1. Prompt the user to enter an integer, then read it in and store it in a variable. 2. If the number they entered is even, print out the number on a line by itself. If the number is not even, then print "That was odd!" on a line by itself, 10 times using a for loop. 3. Use a while loop to count from 1 to 10 , printing a " after every other number. Enter an integer: 4 4 12345678910 Enter an integer: 5 That was oddl That was oddl That was odd! That was oddl That was oddl That was odd! That was odd! That was odd! That was odd! That was odd! 123456789

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 Databases Questions!