primitive operator question 4 is not properly explained would like some help | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

primitive operator question 4 is not properly explained would like some help

29th Jun 2020, 6:45 PM
Morgan Bezuidenhout
Morgan Bezuidenhout - avatar
1 Resposta
+ 5
The value of 2Ļ€ is equal to 6.283. And they are telling us to multiply 2Ļ€ Ɨ radius and we are taking radius as the input. So, if the radius is 4 =, so the calculation is 2Ļ€ Ɨ 4 = 25.12. The code is: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double pi = 3.14; //your code goes here System.out.println((pi * 2) * scanner.nextInt()); } }
15th Sep 2021, 9:45 AM
ƃƑSHƙ KHƁƑRƂ
ƃƑSHƙ KHƁƑRƂ - avatar