TEC217 Assign5 Compatibility Mode-Word ictor Fomc Layout References Mailings Rev
ID: 3605813 • Letter: T
Question
Explanation / Answer
UNCONDITIONAL CONTROL STATEMENT:
The syntax of goto statement is:
Points to remember about goto statement:
Execute Uncoditional Branch:
2. Before Entering the second number, Little Man has to press ENTER keyword. This tell the compiler that till here, I was typing the first number. Here ENTER keyword works as terminator.
3.
#include <stdio.h>
int reversDigits(int num)
{
int rev_num = 0;
while(num > 0)
{
rev_num = rev_num*10 + num%10;
num = num/10;
}
return rev_num;
}
int main(void) {
// your code goes here
int firstNumber, secondNumber;
scanf("%d%d", &firstNumber, &secondNumber);
printf("%d %d ", reversDigits(firstNumber), reversDigits(secondNumber));
return 0;
}
................
................
................
END:
.................
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.