Program to find pythagorean triplets from 100 to 1000


Question 1) Write a program to print the sum of negative numbers, sum of positive even numbers and sum of positive odd numbers from a list of numbers entered by the user.

Question 2) Write a program to print the largest even number and largest odd number from the list of numbers entered through keyboard.

Question 3) Write a program to determine all Pythagorean triplets in the range 100 to 1000.

(A Pythagorean triplet is a set of three integers i, j, k such that i2+ j2= k2)

Question 4) Write a program to print the following series:

(1) 2, 4, 8, 16, 32, 64, 128, 256

(2) 1, 4, 7, 10, …………… 40

(3) 1, -4, 7, -10……………-40

(4) 1, 5, 11, 19, 29 ……..

(5) (1)+(1+2)+(1+2+3)+(1+2+3+4)…………..up to n terms

(6) (2) + (2+4) + (2+4+6) + (2+4+6+8)………….up to n terms.

(7) (1) + (1+3) + (1+3+5) + (1+3+5+7)…………..up to n terms

(8) (12) + (12+32)+(12+32+52)+(12+32+52+72)…….up to n terms

(9) (22) + (22+42) + (22+42+62)+(22+42+62+82)………up to n terms

Question 5) Write a program to calculate the root of quadratic equation.

Question 6) Write a menu driven program which has following options:

1.Factorial of a number.

2.Prime or Not

3.Odd or even

4.Exit

Question 7) Write a program to input a number and print its reverse number. Also check that the number is palindrome or not.

Question 8) Write a program to input a number and find out the sum of its digits.

Question 9) Write a program to find out the count of the digits of a given integer.

Question 10) Write a program to print the Fibonacci series.

Question 11) WAP to print the truth table for XY+Z.

Question 12) WAP to print the factorial of all the numbers till the given number.

Question 13) Write a program to print the tables of all the numbers till the given number.

Question 14) Write a program to input month number and year and print the calendar for the given month.

Question 15) Write a program to find out the difference between two dates, in terms of days, months and years.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Program to find pythagorean triplets from 100 to 1000
Reference No:- TGS04890

Expected delivery within 24 Hours