Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- /**
- *
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner sc = new Scanner(System.in);
- Sotr [] sotr = new Sotr[sc.nextInt()];
- for(int i = 0; i < sotr.length; i++){
- sotr[i] = new Sotr();
- sotr[i].fio = sc.nextLine();
- sotr[i].tabNumber = sc.nextLine();
- sotr[i].countHours = sc.nextInt();
- sotr[i].rate = sc.nextInt();
- }
- for(int i = 0; i < sotr.length; i++){
- System.out.println(sotr[i].fio+"\t"+(sotr[i].countHours*sotr[i].rate));
- }
- }
- private static class Sotr{
- String fio, tabNumber;
- int countHours, rate;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement