Computer Science, asked by rayaishik, 1 month ago

What will be the output if 2618 is passed to the function. Also state what operation the function

is carrying out.


void fun(int n)

{

int a, b = 9 ;

while(n > 0)

{

a = n % 10 ;

n = n / 10 ;

if(a < b)

b = a ;

}

}​

Answers

Answered by mosquedajoshua392
0

ANSWER:

The output is 0,1,2,0,

Similar questions