Zadanie 1.
#include
using namespace std;
int main()
{
string imie;
int wiek;
cin >> imie >> wiek;
cout << imie << " " << wiek;
}
Zadanie 2.
#include <iostream>
cin >> wiek;
cin >> imie;
for(int i = 1; i <= wiek; i++) {
cout << imie <<"\n";
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Zadanie 1.
#include
using namespace std;
int main()
{
string imie;
int wiek;
cin >> imie >> wiek;
cout << imie << " " << wiek;
}
Zadanie 2.
#include <iostream>
using namespace std;
int main()
{
int wiek;
string imie;
cin >> wiek;
cin >> imie;
for(int i = 1; i <= wiek; i++) {
cout << imie <<"\n";
}
}