Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sample
Language: JAVA
Code:
abstract class A
{
abstract void draw();
}
class B extends A{
void draw()
{
int a,b;
float c;
DataInputStream din=new DataInputStream(System.in);
System.out.println("Enter two integer Values\n");
a=Interger.PraseInt(din.readLine());
b=Interger.PraseInt(din.readLine());
c=a/b;
System.out.println("Division of two integer Values:--> "+c+"ans");
}
}
class Ab{
public static void main(String args[])
{
B s1=new B();
s1.draw();
}
}
Comments: