Computer Science, asked by arnav9688, 5 months ago

Answer the following based on the following code.

// Java program to find sum of

// digits of a number until

// sum becomes single digit.

import java.util.*;

public class GfG

{ int c;

static int digSum(int n)

{

int sum = 0;

while (n > 0 || sum > 9)

{

if (n == 0) {

n = sum;

sum = 0;

}

sum += n % 10;

n /= 10;

}

return sum;

}

public static void main(String arg[])

{

c= 1234;

System.out.println(digSum(c));

}

}

a. Name the functions along with their return types used in the program.

b. Name the calling and the called functions separately.

c. Write the local and instance variable.

d. Write the name of the type of comments used in the program.​

Answers

Answered by KANAKPHALET
1

Answer:

i didn't get ya! and the question is too long


Anonymous: hiiii
Anonymous: mis gamil
KANAKPHALET: mis Gmail?
Answered by jasleensandhu39
0

Answer:

b option is correct

plz follow me

mark as brainleist

Similar questions