The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Java
By Guest on 8th August 2024 07:39:15 AM | Syntax: PYTHON | Views: 45



New Paste New paste | Download Paste Download | Toggle Line Numbers Show/Hide line no. | Copy Paste Copy text to clipboard
  1. class DataInput
  2. {
  3.         public static void main(String args[])
  4.         {
  5.         try
  6.         {
  7.         DataInputStream in + new DataInputStream(System.in)
  8.         System.out.println("Enter 1st number:")
  9.         int a=Integer parseInt(in.readLine());
  10.         System.out.println("Enter 2nd number:");
  11.         int b=Integer.parseInt(in.readLine());
  12.         }
  13.         }
  14. }





java