0

write a program in Java to assign fractional numbers 16.0 and 25.0 print their square root

17th Aug 2020, 1:32 PM
Amandeep Maurya
Amandeep Maurya - avatar
6 Antworten
+ 5
pls show us your attempt
17th Aug 2020, 1:39 PM
Nilesh
Nilesh - avatar
0
Tag a specific language please, not a person's name ... ☝
17th Aug 2020, 1:54 PM
Ipang
0
I am not sure: This could be a challenge (order): If so then just remove it here. q&a os for questions This is a questions: If so, then show us your attempt and we will help you to improve it.....
17th Aug 2020, 2:21 PM
Alexander Thiem
Alexander Thiem - avatar
0
public class { public static void main (String []args) { double a,b,c,d; a=16.0;b=25.0; c=math.sqrt(a); d=math.sqrt(b); System.out.println("Square of a="+c); System.out.println("Square of b=+d"); } } Here is ur solution it will surely work
30th Aug 2020, 4:06 AM
Aditya Mishra
0
In the third last line in sopln u have putted the double apostrophe after d but u have to put it before +. System.out.println("square of b="+d); This is the correct............🙏🏻🙏🏻😇😇
3rd Feb 2023, 3:50 PM
Ashfa Naseem
Ashfa Naseem - avatar