import javax.swing.JOptionPane; public class praclab { - TopicsExpress



          

import javax.swing.JOptionPane; public class praclab { public static void main(String[]Args) { int temp; temp = Integer.parseInt(JOptionPane.showInputDialog(Enter Temperature)); if(temp < 15) JOptionPane.showMessageDialog(null,temperature is + temp + (The Weather is cold)); else if( temp >= 15 && temp < 25){ JOptionPane.showMessageDialog(null, temperature is + temp + (the weather is warm)); } else { JOptionPane.showMessageDialog(null, Temperature is + temp + (The weather is hot)); } } }
Posted on: Tue, 21 Jan 2014 03:45:23 +0000

Trending Topics



Recently Viewed Topics




© 2015