Задача 2.2. Надрукувати привітання з днем народження за допомогою функції:
Happy birthday to you!
Happy birthday to you!
Happy birthday, dear Oksana
Happy birthday to you!
Ответы
C++:
#include <iostream>
int main() {
std::cout << "Happy birthday to you!" << std::endl;
std::cout << "Happy birthday to you!" << std::endl;
std::cout << "Happy birthday, dear Oksana" << std::endl;
std::cout << "Happy birthday to you!" << std::endl;
return 0;
}
Pascal:
begin
writeln('Happy birthday to you!');
writeln('Happy birthday to you!');
writeln('Happy birthday, dear Oksana');
writeln('Happy birthday to you!');
end.
Python:
print("Happy birthday to you!")
print("Happy birthday to you!")
print("Happy birthday, dear Oksana")
print("Happy birthday to you!")
Java:
public class Birthday {
public static void main(String[] args) {
System.out.println("Happy birthday to you!");
System.out.println("Happy birthday to you!");
System.out.println("Happy birthday, dear Oksana");
System.out.println("Happy birthday to you!");
}
}