Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #72.7K
~344 People Reached
Interests
Computer Programming and Taekwondo
Favorite Forums
Favorite Tags
Member Avatar for godzab

Hello all, I am trying to take input from user using scanner. The problem is, when the loop starts, it skips taking input for the first iteration. Here is the code: import java.util.Scanner; public class TrigTriangles{ public static void main(String[] args){ int N; double a,b,c; double A,B,C; Scanner s = …

Member Avatar for noobz32
0
203
Member Avatar for Trevor_5

what input statement is used in a float..` import java.util.Scanner; public class Program1 { public static void main(String[] args) { float Fahrenheit, celsius; Scanner input = new Scanner(System.in); System.out.print("Enter temperatue in Celsius"); celsius = input.nextDouble();<---- this line is giving a run time error. Fahrenheit= ((9 * celsius)/5 +32 ); System.out.println(celsius …

Member Avatar for JamesCherrill
0
141