佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1291|回复: 3

有谁可以帮帮忙关于VB.NET的!!

[复制链接]
发表于 24-5-2009 12:26 PM | 显示全部楼层 |阅读模式
我学院的老师出了一道题目:
(Pythagorean Triples) Some right triangles havesides that are all integers. A set of three integer values for the sides of aright triangle is called a Pythagorean triple. These three sides must satisfythe relationship that the sum of the squares of the two sides is equal to thesquare of the hypotenuse. Write a program to find all Pythagorean triples forside1, side2, and hypotenuse none larger than 30. Use a triple tested For/Nextloop that tries all possibilities. This is an example of “brute force”computing. You will learn in more advanced computer science courses that thereare some problems for which there is no known algorithmic approach other thanusing sheer brute force.
班上的同学又不听课,全部要我做,请各位大大高抬贵手,帮个小忙!!
回复

使用道具 举报


ADVERTISEMENT

发表于 28-5-2009 03:22 PM | 显示全部楼层
现在的学生重量不重质,这样容易的题目都不会,
也不愿意用脑想想。学院到处都是,教育素质却如此差。
回复

使用道具 举报

发表于 27-6-2009 09:52 PM | 显示全部楼层
不过就是数学题。。。。 =.=
用condition就可以了。。。
不是IT的人都会
回复

使用道具 举报

发表于 3-7-2009 04:00 PM | 显示全部楼层
一块蛋糕...酱简单都不会
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 6-12-2025 09:49 AM , Processed in 3.253792 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表