# Algorithms and Data Structures- Group project

```public class MyProgram {
public static void main(String[] args) {
int f=10;
System.out.println(f);
}
}
import java.util.Scanner;
public class MyProgram {
public static void main(String[] args) {
Scanner in= new Scanner(System.in);
System.out.println("Enter number");
int f=in.nextInt();
System.out.println("number=="+f);
}
}
import java.util.Scanner;
public class MyProgram {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
float n1, n2;
n1 = in.nextFloat();
System.out.println("Plase enter the second number:");
n2 = in.nextFloat();
System.out.println("num1="+n1+"\n"+"num2="+n2);
}
}
import java.util.Scanner;
public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
float n1, n2;
n1 = in.nextFloat();
System.out.println("Plase enter the second number:");
n2 = in.nextFloat();
System.out.println("num1=" + n1 + "\n" + "num2=" + n2);
String out1 = String.format("num1=%f num2=%f", n1, n2);
System.out.println(out1);
// System.out.printf("num1=%.2f num2=%f",n1,n2);
}
}
import java.util.Scanner;

public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter a value s:");
String s = in.next();
System.out.printf("s = %s", s);
}
}
import java.util.Scanner;
public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter a value s:");
String s = in.nextLinea();
System.out.printf("s = %S", s);
}
}
import java.util.Scanner;

public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter a value s:");
char s = in.next().charAt(0);
System.out.printf("s=%s", s);
}
}
import java.util.Scanner;
public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n1, n2;
System.out.println("Enter num1:");
n1 = in.nextInt();
System.out.println("Enter num2:");
n2 = in.nextInt();
System.out.println("sum=" + (n1 + n2));//not n1+n2
}
}
import java.util.Scanner;
public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n1, n2, sum;
System.out.println("Enter num1:");
n1 = in.nextInt();
System.out.println("Enter num2:");
n2 = in.nextInt();
sum = n1 + n2;
System.out.println("sum=" + sum);
}
}
import java.util.Scanner;
public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n1, n2, n3;
System.out.println("Enter num1:");
n1 = in.nextInt();
System.out.println("Enter num2:");
n2 = in.nextInt();
System.out.println("Enter num3:");
n3 = in.nextInt();
System.out.println("Avg==" + (n1 + n2 + n3) / 3);

}
}
import java.util.Scanner;

public class Ahmedjava {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n1, n2, n3;
System.out.println("Enter num1:");
n1 = in.nextInt();
System.out.println("Enter num2:");
n2 = in.nextInt();
System.out.println("Enter num3:");
n3 = in.nextInt();
System.out.println("Avg==" + (n1 + n2 + n3) / 3);

}
}
```