0
Java
calculate a+b ,two integer a,b(0<=a,b=10) out put a+b
7 odpowiedzi
+ 4
import java.util.Random;
public class Program
{
public static void main(String[] args) {
Random rand = new Random();
int a = 0;
do {
a = rand.nextInt();
}
while (a>0);
int b = 10;
int c = a + b;
System.out.print(c);
}
}
+ 4
Lol... If you still want me to post the code, say yes again... and please credit my name
+ 3
Before I post the code... I want to ask, does someone asked to write a code that does this?
0
Yes
0
Yes 😊 I’m new to java ,
0
Genius 😁
0
I got last question for you