Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Dem.java
Language: JAVA
Code:

import java.io.*;
import java.util.*;
class Demo
{
int a,b,c;
Scanner s = new Scanner(System.in);
a=s.nextInt();
b=s.nextInt();
void div()
{
c=a/b;
System.out.println("div",+c);
}
void per()
{
c=a%b;
System.out.println("per",+c);
}
}
class Dem
{
  public static void main(String args[])
  {
    Demo d=new Demo();
    d.div();
    d.per();
  }
}
Comments: