DISQUS

Tech-Recipes: Java while-do and do-while loop syntax | Java programming | Tech-Recipes

  • mike · 12 months ago
    I need a java program that will repeatedly read temperatures in Fahrenheit and convert them to Celsius until a temperature > 212 F is entered. I really need this, please, and thank you. mbnumba14@yahoo.com(email address)

    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);
    }
    }
    .
  • catherine · 11 months ago
    can you help me?i need any program on java using do while loop statement..i badly need it..email it here babytsk27_iilamagawaii_mac518@yahoo.com..thanks.
  • waseemwaheed · 6 months ago
    it is best site
  • waseemwaheed · 6 months ago
    please send me best language programs at my e-mail. waseemwaheed_31@yahoo.com
  • vhel · 5 months ago
    how can i create a program like this...
    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
  • hari krishna · 5 months ago
    do while.... where it will be used.
  • rheylyn · 3 months ago
    hi hoe you can help me in having a code of asp