Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a. Write a pseudo code read a 4-digit number and print a new number with digits reversed as of original one. (6 Marks) Example:
a. Write a pseudo code read a 4-digit number and print a new number with digits reversed as of original one. (6 Marks) Example: Input: 4356 Output: 6534 Input: 1023 Output: 2301 b. Find the errors if any in Column A write the correct statement in column B for the following program. (2 Marks) elumn A Column B Finchude (itdio.h) int main ) double printEnter three diferent umbersk scandf r, Anl, &n2, if (nl2A nl -a) print2fis the largest mber.". nik if en2al && n2a printi 2r is the larpest mumber.". Ifin nl && n 2) print2ris the largest aumber.". Column A Calumn B Finclode (stdioh) int main () double nl, a2, n3: printater three different mambersk scanl"lf r sur. Anl, an2, n3). printi2fis the largest mber.". nik printi 2f is the larpest mumber.". print2f is the laegest manber.".
Step by Step Solution
★★★★★
3.36 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
a PsuedoCode step 1 Start step 2 Intilize the variablereverse0 step 3 Read the 4digit number as num ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started