وتر مثلث
using System;
using System.Collections.Generic;
using System.Text;
namespace Vatar
{
class Program
{
static void
{
double a;
Console.WriteLine("X\tY\tZ");
for(int i=1;i<=30;i++)
for (int j = i; j <= 30; j++)
{
a =Math.Sqrt( (double)((i*i)+(j*j)));
if (a <= 30)
{
Console.WriteLine(i + "\t" + j + "\t" + a);
//Console.ReadLine();
}
}
Console.ReadLine();
}
}
}
+ نوشته شده در یکشنبه نهم تیر ۱۳۸۷ ساعت 7:59 توسط رضا امیرخانی
|