Update
This commit is contained in:
parent
124b9d1e7c
commit
3f374a4713
85 changed files with 2281 additions and 2272 deletions
8
cpp.md
8
cpp.md
|
@ -28,7 +28,7 @@ void printDivisorTree(unsigned int x)
|
|||
}
|
||||
|
||||
cout << '(';
|
||||
|
||||
|
||||
if (a > 1)
|
||||
{
|
||||
printDivisorTree(a);
|
||||
|
@ -37,7 +37,7 @@ void printDivisorTree(unsigned int x)
|
|||
}
|
||||
else
|
||||
cout << x;
|
||||
|
||||
|
||||
cout << ')';
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ int main()
|
|||
unsigned int number;
|
||||
cout << "enter a number: " << flush;
|
||||
cin >> number;
|
||||
|
||||
|
||||
if (!cin.fail() && number < 1000)
|
||||
{
|
||||
printDivisorTree(number);
|
||||
|
@ -60,4 +60,4 @@ int main()
|
|||
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue