fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to b#include <iostream>
  8. using namespace std;
  9.  
  10. int main() {
  11.   int a, b;
  12.   cout << "Nhap so thu nhat: ";
  13.   cin >> a;
  14.   cout << "Nhap so thu hai: ";
  15.   cin >> b;
  16.  
  17.   cout << "Tong cua hai so la: " << a + b << endl;
  18.   cout << "Tich cua hai so la: " << a * b << endl;
  19.  
  20.   if (a % b == 0) {
  21.   cout << a << " chia het cho " << b << endl;
  22.   } else {
  23.   cout << a << " khong chia het cho " << b << endl;
  24.   }
  25.  
  26.   return 0;
  27. }e "Main" only if the class is public. */
  28. class Ideone
  29. {
  30. public static void main (String[] args) throws java.lang.Exception
  31. {
  32. // your code goes here
  33. }
  34. }
Success #stdin #stdout 0.09s 52588KB
stdin
Standard input is empty
stdout
Standard output is empty