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


Question #1:<br>Write a C program that implements the following pseudocode:<br>1. Input an integer number<br>2. If the number is odd, then<br>а.<br>Add 1 to it<br>b.<br>Divide it by 2<br>Print the result<br>С.<br>3. Else if the number is even, then<br>а.<br>Multiply it by 2<br>b.<br>Print the result<br>4. Print your name and ID<br>#include <stdio.h><br>int main(void)<br>{<br>//Declare required variables<br>//excitable statements<br>printf(\n"); printf("< your="" id="">\n"); return 0; question1.c Output Screenshot "/>
Extracted text: Question #1: Write a C program that implements the following pseudocode: 1. Input an integer number 2. If the number is odd, then а. Add 1 to it b. Divide it by 2 Print the result С. 3. Else if the number is even, then а. Multiply it by 2 b. Print the result 4. Print your name and ID #include int main(void) { //Declare required variables //excitable statements printf("< your="" name="">\n"); printf("< your="" id="">\n"); return 0; question1.c Output Screenshot

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here