first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import java.util.Scanner;
public class Main{
static class person{
String name, date;
float a, b, c;
public void out(){
System.out.printf("%s %s %.1f", name, date, a + b + c);
}
public void in(Scanner sc){
name = sc.nextLine();
date = sc.next();
a = sc.nextFloat();
b = sc.nextFloat();
c = sc.nextFloat();
}
}
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
person a = new person();
a.in(sc);
a.out();
sc.close();
}
}