Write a C program that implements the following pseudocode: 1. Input an integer number 2. If the number is odd, then a. Add 1 to it b. Divide it by 2 c. Print the result 3. Else if the number is even,...


Write a C program that implements the following pseudocode:









1.      Input an integer number


2.      If the number is odd, then


a.       Add 1 to it


b.       Divide it by 2


c.        Print the result


3.      Else if the number is even, then


a.       Multiply it by 2


b.       Print the result


4.      Print your name and ID




Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here