GamerSK

Untitled

Oct 12th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. int n = StrToInt(InputBox("Zadajte pocet ziakov","Cislo","1")),
  2.         c[255];
  3.     String z[255],
  4.            output;
  5.     for (int i = 1; i <= n; i++) {
  6.         z[i] = InputBox("Zadajte meno ziaka","Meno","");
  7.         c[i] = StrToInt(InputBox("Zadajte znamku pre ziaka "+z[i],"Znamka","1"));
  8.     }
  9.     for (int i = 1; i <= n; i++) {
  10.         output += z[i] + " : " + c[i] + "\n";
  11.     }
  12.     ShowMessage(output);
Advertisement
Add Comment
Please, Sign In to add comment