Java Practice
Java Practice
Scanner;
public class Main
{
public static void main (String[]args)
{
/* System.out.println ("quiz1");
System.out.println ("write the following equation in java ");
//first equation
int x = 10;
int y =50
int a = x - y;
int b = 2;
int c = a / 2;
//second equation
int d = (b * b - 4 * a * c) / 2 * a;
//third equation;
int e = a * b - d;
System.out.println ("quiz2");
int a = 10;
a++;
++a;
--a;
System.out.println (a);
System.out.println ("quize 3");
// question 1
int y = 7;
int x = ++y * 8;
System.out.println (x);
// question 2
char a = 'c';
a++;
System.out.println (a);
Scanner sc = new Scanner (System.in);
int a = sc.nextInt ();
if (a >= 18 && a <= 100)
{
System.out.println ("thnks");
}
else
{
System.out.println ("sorry you are not able join");
}
}
}
*/