c_cpp Hipotenus'u 500 birime kadar olandiküçgenlerin,kenaruzunluklarınıgösterenbi

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c_cpp Hipotenus'u 500 birime kadar olandiküçgenlerin,kenaruzunluklarınıgösterenbi相关的知识,希望对你有一定的参考价值。

#include<stdio.h>
int main( void ) 
{
	int a; /* birinci dik kenar */
	int b; /* ikinci dik kenar */
	int hipotenus;

	for(a = 1; a < 500; a++)
		for(b = a; b < 500; b++)
			for(hipotenus = b+1; hipotenus <= 500; hipotenus++)
				if( (a*a + b*b) == hipotenus*hipotenus )
					printf("%5d%5d%5d\n", a, b, hipotenus);
	return 0;
}	

以上是关于c_cpp Hipotenus'u 500 birime kadar olandiküçgenlerin,kenaruzunluklarınıgösterenbi的主要内容,如果未能解决你的问题,请参考以下文章

c_cpp https://arena.topcoder.com/#/u/practiceCode/13581/7587/8480/1/298265

c_cpp https://arena.topcoder.com/#/u/practiceCode/12244/7853/8776/2/270168

c_cpp https://arena.topcoder.com/#/u/practiceCode/1331/1747/1872/2/1331

c_cpp https://arena.topcoder.com/#/u/practiceCode/15419/24973/11835/2/314633

c_cpp https://arena.topcoder.com/#/u/practiceCode/1259/1260/1331/1/1259

c_cpp https://arena.topcoder.com/#/u/practiceCode/13574/7776/8692/1/298183