I have problem with converting my idea into C/c++ conventions, because now I begin my adventure with this language.
I know that to split integer into two parts you have to use something like:
b=1;
while(a!=0, a>=b)
{
a;
printf("%d + %d\n", a, b);
b++;
}
so if we could split number a, and b again it should work, but I think it won't work because it will be problem with order of numbers, and many more.
The second idea I have is to initiate chart with growing size, in with we first put our number( size=1) then size=2 and split our X, then size 3 in which we firstly split number to two first "columns" and in 3th place would be "1". When it's done we add 1 to the 2nd number (1 in 1st), and than program should try add to the 3th as lond as 3th=<2nd, than we again add 1 to 2nd, and the same with 3th, the same should work with as long as we obtain "1" in everywhere.
I think the second solution should work, but it comlicated and I have problem with how to write it. I thinking about it from a few days, and I have no idea how to do it.
You could help me even by sugestin me other way of solwing this problem. And sorry for my english!
