W.A.P. to convert Celsius to Fahrenheit

class ConvertCtoF
  {
     public static void main(String[] args)
       {
         int c;
        
         System.out.println("Fahrenheit is:->");
         for(c=0;c<=100;c++)
           {
             float f=c*(9/5f)+32;
          
             System.out.println("Celsius="+c+"Fahrenheit="+f);
           }
        }
   }
            

No comments:

Post a Comment