This commit is contained in:
Miloslav Ciz 2024-08-31 14:44:45 +02:00
parent 124b9d1e7c
commit 3f374a4713
85 changed files with 2281 additions and 2272 deletions

12
c.md
View file

@ -45,9 +45,9 @@ void printDivisorTree(unsigned int x)
if (b <= a)
break;
}
putchar('(');
if (a > 1)
{
printDivisorTree(a);
@ -55,8 +55,8 @@ void printDivisorTree(unsigned int x)
printDivisorTree(b);
}
else
printf("%d",x);
printf("%d",x);
putchar(')');
}
@ -66,7 +66,7 @@ int main(void)
{
unsigned int number;
printf("enter a number: ");
if (scanf("%u",&number) == 1 && number < 1000)
{
printDivisorTree(number);
@ -192,7 +192,7 @@ A simple program in C that writes "welcome to C" looks like this:
int main(void)
{
// this is the main program
// this is the main program
puts("welcome to C");
return 0; // end with success