Computer Science, asked by shadowkingt0321, 2 months ago

Write output : int a=78; [2]
int b=a%10;
int c=a/10;
What will be the value of b and c after execute the above expression

Answers

Answered by AreetraSircar
2

Answer:

Output:

b = 8

c = 7

I hope I could help you

Answered by Oreki
2

\textsf{Given Expression}

   \texttt{int a = 78;}\\\texttt{int b = a \% 10;}\\\texttt{int c = a / 10;}

\textsf{Answer}

   \boxed{\texttt{b = 8}} {\sf \: \: and \: \:} \boxed{\texttt{c = 7}}.

Similar questions