Advertisement
kocev

SchoolScore

Feb 19th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. public class SchoolScore {
  2.     public static void main(String[] args) {
  3.         String name1 = "Иванчо";
  4.         double score1 = 2;
  5.         String name2 = "Марийка";
  6.         double score2 = 6;
  7.         String name3 = "Пенчо";
  8.         double score3 = 4;
  9.         String name4 = "Голям Петко";
  10.         double score4 = 5;
  11.  
  12.         System.out.printf("%-11s - %.0f%n%-11s - %.0f%n%-11s - %.0f%n%-11s - %.0f%n",name1, score1, name2, score2, name3, score3, name4, score4);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement