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 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
Get step-by-step solutions from verified subject matter experts
