Sei sulla pagina 1di 3

class Ideone

{
public static void main (String[] args) throws java.lang.Exception
{
int x=26750, r=0;
r+=x/10000;
x=x%10000;
r+=x/1000;
x=x%1000;
/*
r+=x/100;
x=x%100;
*/
r+=x/10;
r+=x%10;
System.out.println(r);
}
}
=83
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
int x=26750, r=0;
r+=x/10000;
x=x%10000;
r+=x/1000;
x=x%1000;
r+=x/100;
x=x%100;
r+=x/10;
r+=x%10;
System.out.println(r);
}
}
=20
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
int a = 1;
int b = 2;
int c = 5;
int d = (a + b) * c;
int e = a + b * c;
int f = 2 * a * a * + b * 3 + c;
System.out.println (a);

System.out.println
System.out.println
System.out.println
System.out.println
System.out.println
}

(b);
(c);
(d);
(e);
(f);

}
=
1
2
5
15
11
17
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class main
{
public static void main (String[] args) throws java.lang.Exception
{
string b='h'+"o"+'l'+"a"+"";
boolean c=a.equals(b);
boolean e=!c;
char f='f';
char g='f';
boolean h=g!=f;
system.out.println(a);
system.out.println(b);
system.out.println(c);
system.out.println(d);
system.out.println(e);
system.out.println(f);
system.out.println(g);
system.out.println(h );
}
}
= ????
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
char i = 'd';
char j = 'e';
int n = 2;
String s = "d+e";
String t = "de";
String u = i + "" + n + j + "!";
System.out.println (i);
System.out.println (j);

System.out.println (s);
System.out.println (t);
System.out.println (u);
}
}
=
d
e
d+e
de
d2e!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
int r3=0;
int x=3;
float a=30.99f;
int b=7;
x=(int)a;
b--;
//x=x % b * b % x - 6;
System.out.println(x);
=30
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Potrebbero piacerti anche