1. ## kardışık number

sample:
13 = 22 + 32
14 = 12 + 22 + 32

In this context, it entered between 1 and 9999 (if a larger or smaller number entered will be given a warning) whether a number kardışık number, and that number is the sum of what number you kardışık developed by the c program.
sample entries: 421
sample output: 14  15 2. Google translate has seen better days... 3. Originally Posted by TuÄŸba YÄ±lmaz sample:
13 = 22 + 32
14 = 12 + 22 + 32

In this context, it entered between 1 and 9999 (if a larger or smaller number entered will be given a warning) whether a number kardışık number, and that number is the sum of what number you kardışık developed by the c program.
sample entries: 421
sample output: 14 – 15
Sounds simple enough. What have you tried? What are you having trouble with? Post some code.

BTW, does anyone know what these numbers are called in English? Google translate doesn't seem to know. 4. Code:

Code:
```#include <stdio.h>
#include <stdlib.h>

main()
{
long int a,n,s1,s2,o;
label: printf("Enter the number: ");
scanf("%ld",&a);
if (a<1 || a>9999)
{
printf("\n please enter 1 between 9999 number!\n\n");
goto label;
}
for (n=1;n<a;++n)
{
s1=n*n;
s2=(n+1)*(n+1);
o=s1+s2;

if(o==a){
printf("\n numbers: %ld,%2ld",n,n+1);
}

}

printf("\n\n");
}```
not working 14 = 12 + 22 + 32 5. You must know why your code isn't working for the given example. Your code only tests for two numbers in a row but your example needs three. Instead of a fixed number you'll need another loop.

So these so-called "kardışık numbers" (we still don't have a translation here) are numbers that can be represented as the sum of the squares of consecutive integers? Are the squares themselves "kardışık numbers"? 6. A "kardışık number" means "pyramid number" 7. You should not be using goto. It is more appropriate to use a loop for that purpose. 8. Code:
```main()
{
long int a,n,s1,s2,o;
label: printf("Enter the number: ");
scanf("%ld",&a);
if (a<1 || a>9999)
{
printf("\n please enter 1 between 9999 number!\n\n");
goto label;
}
for (n=1;n<a;++n)
{
s1=(n*n)+((n+1)*(n+1));
s2=(n+2)*(n+2);
o=s1+s2;
if(s1==a){
printf("\n numbers: %ld,%ld",n,n+1);
}
else if(o==a){
printf("\n numbers: %ld,%ld,%ld",n,n+1,n+2);
}
}
printf("\n\n");
}```

Alright thanks a lot I got it.
Thanks a lot guys/gals. 9. Originally Posted by WoodSTokk A "kardışık number" means "pyramid number" Popular pages Recent additions 