fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4. struct student
  5. {
  6. char fio[20];
  7. int den;
  8. int month;
  9. int god;
  10. };
  11.  
  12. int main()
  13. {
  14. student gr[5];
  15. for(int i=0;i<5;i++){
  16. scanf("%s %d %d %d\n",&gr[i].fio,&gr[i].den,&gr[i].month,&gr[i].god);
  17. printf("%s %d %d %d\n",gr[i].fio,gr[i].den,gr[i].month,gr[i].god);
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0s 2856KB
stdin
Sasha 14 9 1991
Pasha 3 7 1991
Andrу 6 1 1990
Kosty 8 11 1992
Polik 2 7 1991 
stdout
Sasha 14 9 1991
Pasha 3 7 1991
Andrу 6 1 1990
Kosty 8 11 1992
Polik 2 7 1991