U E D R , A S I H C RSS

구구단/aekae

No older revisions available

No older revisions available



C++
----
~cpp 
#include <iostream>
using namespace std;

int main()
{
	for (int i=1; i<10; i++)
	{
		for (int j=2; j<6; j++)
			cout << j << " * " << i << " = " << j*i << "\t";
		cout << "\n";
	}

	cout << "\n";

	for (int k=1; k<10; k++)
	{
		for (int h=6; h<10; h++)
			cout << h << " * " << k << " = " << h*k << "\t";
		cout << "\n";
	}
	return 0;
}

Smalltalk

~cpp 
PrintGugudan
	| a b |
	a := 2.
	b := 1.
	8 timesRepeat: [
	9 timesRepeat: [Transcript show: a;show:'*';show:b;show:'='; show: a * b; cr. b := b + 1.].
	a:= a+1.
	b:= 1.].	


abc := Gugudan new.
abc PrintGugudan.
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:45
Processing time 0.0217 sec