Computer Science, asked by VaniSna, 10 months ago

Write a program in java to find out the sum of n number without using loop or any break statement.

Answers

Answered by Vyomsingh
1

Answer:

Secondary School Computer science 5+3 pts

Write a program in java to find out the sum of n number without using loop or any break statement.

Ask for details by VaniSna 23.07.2019

Answers

The Brain

THE BRAINLIEST ANSWER!

Vyomsingh

Vyomsingh Ace

Answer:

class Sum

{

int a,b,sum,k;

public static void main(int n)

{

sum=sum+a+b;

k++;

if(k<n)

{

main();

}

}

}

/*Explanation:

PlEASE MARK ME AS BRAINLIEST!!!!*/

Explanation:

Similar questions