Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- i found it after i sent it lol blondie here lol.. just sent u a message on the wii.! thanks!
- micheal send a nice phone and picture to me.
- Yes, but here it is again. It is 4285 2670 2528 4658
- sure thing!! is ur wii number on this list?
- Hi Lorraine, I just added you on my list. you can add me if you want
Tech-Recipes
Cookbook of Tech TutorialsJava while-do and do-while loop syntax | Java programming | Tech-Recipes
Started by qdideas · 9 months ago
7 months ago
Here is my java program:
import java.util.*;
// Converter.java
public class Converter
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter temp: ");
int temp = sc.nextInt();
System.out.println(convertToC(temp));
}
public static int convertToC(int temp)
{
return ((temp - 32 ) * 5/9);
}
}
.
6 months ago
2 months ago
2 months ago
1 month ago
pls help me
Design and implement a program using while and for loop that will prompt the user to enter a number. The program will give all numbers that divide that number.
Example:
Please enter a number: 36
Numbers dividing 36 are: 1 2 3 4 6 9 12 18 36
3 weeks ago