//CAUCSE 5번 출력하기. #include <iostream> using namespace std; void print_CAUCSE_LOVE(void); void main(){ for (register int i=0; i<5; ++i) print_CAUCSE_LOVE(); system ("PAUSE"); } void print_CAUCSE_LOVE(){ cout << "CAUCSE_LOVE\n"; }
-module(pr_1). -export([repeat/3]). repeat(Max, Max, L) -> [L]; repeat(I, Max, L) -> [L | repeat(I + 1, Max, L)].
10> c(pr_1). {ok,pr_1} 11> pr_1:repeat(1, 3, "CAUCSE LOVE"). ["CAUCSE LOVE","CAUCSE LOVE","CAUCSE LOVE"] 12>