More actions
imported>Unknown No edit summary |
(Repair batch-0004 pages from live compare) |
||
| Line 43: | Line 43: | ||
c := 1. | c := 1. | ||
8 timesRepeat: | 8 timesRepeat:[[9 timesRepeat: [Transcript show:n*c.Transcript cr.c:=c+1.]].c := 1.n := n +1.]. | ||
| Line 52: | Line 52: | ||
---------- | ---------- | ||
[[구구단]] | [[구구단]] | ||
Revision as of 00:37, 27 March 2026
데블스 캠프 첫번째 (c++)
#include <iostream>
using namespace std;
void main()
{
cout<<"\t구구단\n";
for(int i=1;i<=9;i++)
{
for(int j=2;j<=5;j++)
{
cout<<j<<" * "<<i<<" = "<<i*j<<"\t";
}
cout<<endl;
}
cout<<endl<<endl;
for(int k=1;k<=9;k++)
{
for(int m=6;m<=9;m++)
cout<<m<<" * "<<k<<" = "<<k*m<<"\t";
cout<<endl;
}
}
셋째날 (scheme)
(define (mul x y) (begin (print x) (print * )(print y)(print = ) (print (* x y))(newline)))
(define (num a b)
(if (<= b 9)(begin (mul a b)(num a (+ b 1)))
(when (< a 9)
(begin (num (+ a 1) 1)))))
(num 2 1)
셋째날 (Squeak)
GGD | n c | n := 2. c := 1. 8 timesRepeat:[[9 timesRepeat: [Transcript show:n*c.Transcript cr.c:=c+1.]].c := 1.n := n +1.].
SeeAlso 문원명
DeleteMe 도움말의 페이지이름을 보시고, 현재 페이지를 접근하기 쉽고, 유용하게 해주세요. 하단은 역링크랍니다.