### Program to generate a Pythagorean triplets using C sharp?

well you could go with something like this (this code gives you all triples within a < 500 and b < 500): --------------------------------------------- for (int i = 0; i < 500; i++) for (int j = 0; j < 500; j++) { double squareroot = Math.Sqrt(i*i + j*j); if (squareroot == Math.Round(squareroot)) { // i, j and squareroot is your triple. Add them to list or what ever. } }

### To find square root of a nos without using built in function?

/*Java program to find out square root of a given number * without using any Built-In Functions */ public class SquareRootDemo2 { public static void main(String[] args) { //Number for which square root is to be found double number = -12; //This method finds out the square root findSquareRoot(number); } /*This method finds out the square root without using any built-in functions and displays it */ public static void findSquareRoot(double number) { boolean isPositiveNumber =…

### C program for finding square root of positive no?

#include<stdio.h> #include<conio.h> float SquareRoot(float num); void main() { float input, ans; clrscr(); printf("\n Enter The Number : "); scanf("%f", &input); ans = SquareRoot(input); printf("\n Square Root : %f", ans); getch(); } float SquareRoot(float num) { if(num >= 0) { float x = num; int i; for(i = 0; i < 20; i ++) x = (((x * x) + num) / (2 * x)); return x; } }

### Find all complex solutions for the equation x2 equals 4x - 29?

Use the quadratic formula. In x2 - 4x + 29 = 0, a is 1, b is -4, c = 29. The quadratic formula is: x = (-b plusminus squareroot(b2 - 4ac)) / 2a Use the quadratic formula. In x2 - 4x + 29 = 0, a is 1, b is -4, c = 29. The quadratic formula is: x = (-b plusminus squareroot(b2 - 4ac)) / 2a Use the quadratic formula. In x2…

### IF a ball is dropped from the top of an 80 meter building with what speed in meters per second does it hit the ground?

80 meters A2 The equation that will give you the answer comes from either "conservation of mechanical energy" or from the study of kinematics. If you neglect air resistance the equation is; V = SquareRoot( 2gh) where h = 80 m (given) and g = 9.8 m/ss (acceleration due to gravity). V = SquareRoot( 2 x 9.8 x 80 ) = squareRoot( 1568) = 39.6 m/s Because of air resistance the speed will be a…