What would be the output of the following pseudocode?
Integer a b c
Set a=8. b = 56. C=2
c= a* c* (a )
b = b mod 4
print a +b + c
Answers
Answered by
30
Answer:
nteger a b c. Set a=8. b = 56. C=2 c= a* c* (a ) b = b mod 4 print a +b + c. Add answer. Log in to add comment
Answered by
0
Output = 136
Program is given below.
Explanation:
We can write a program with the help of given pseudo code and print the output.
#include <stdio.h>
int main()
{
//Declaring the variables
int a=8,b=56,c=2;
//In this expression, a, c and a are multiplied and result is stored in c.
c = a*c*(a); //c = 128
//In this expression, b is divided by 4 and remainder is stored in b.
b=b%4; // b = 0
printf("%d",a+b+c); // 8 + 0 + 128 = 136
return 0;
}
Refer the attached image for the output.
Attachments:
Similar questions
Math,
3 months ago
English,
3 months ago
English,
3 months ago
Computer Science,
7 months ago
History,
1 year ago