Output un= Question 25: What will be the output of the program? include int het
ID: 3917171 • Letter: O
Question
Output un= Question 25: What will be the output of the program? include int het (int, int) int main printfi"Enter the two zesult het ia, b) printt("id", result) int hef lint a, int b) while la -b if la > b retura hefia -b, b) elae return hetla, b -a return a Input a-16, b40 Output resulr Question 26: What will be the output of the program? *include int nain iat number, printel"Enter a positive integer: " scanf("id",snumber) printf "Resuits:"j if (nusberts printr/"d " return 0 Input number 12 Output Resul Part III: Code Writing Questions (4 points) Write the following functions usingthe folong ructure for a complex. typedef struct t double zeal, inage l Complex Page 5/7-Exam Code P718Explanation / Answer
Answer 1: 8
here we are calculating the HCF of 16 and 40, Highest common factor of 16,40 is 8
Answer 2:
Results : 2,4,6,8,10,12
printing the even numbers from 1 to given number here it will print even numbers till 12
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.