initial checkin from subversion
This commit is contained in:
28
varnum.c
Normal file
28
varnum.c
Normal file
@@ -0,0 +1,28 @@
|
||||
#include <stdio.h>
|
||||
-- Das sollte man besser mathematisch lösen, siehe 10tox
|
||||
char c[20];
|
||||
|
||||
int basis=10;
|
||||
int len=2;
|
||||
int max;
|
||||
int stelle;
|
||||
|
||||
int i;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
for (i=0;i < len;c[i++]='0')
|
||||
;
|
||||
|
||||
max=len;
|
||||
while (max >= 0)
|
||||
{
|
||||
stelle=max--;
|
||||
for (i=0;i < basis;i++)
|
||||
{
|
||||
c[stelle]=i+'0';
|
||||
printf("%s\n",c);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user