answersLogoWhite

0


Best Answer

Accept 3 natural numbers and check whether it firms pythagorean triplet

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
User Avatar

Clinton Raphael

Lvl 1
2y ago
nice

Add your answer:

Earn +20 pts
Q: A flowchart to Accept three numbers and check whether it firms to Pythagorean triplet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write an algorithm and draw a corresponding flowchart to find the greatest number and its position among the 6 given numbers?

Algorithm Step1: Read A, B, C Step2: If A > B is True, then check whether A > C, if yes then A is greatest otherwise C is greatest Step3: If A > B is False, then check whether B > C, if yes then B is greatest otherwise C is greatest Give the Flowchart Answer


How do you draw a Flowchart to find whether the given number is odd or even using counter?

first we write start and then read number and after that check the number is totaly divide by 2 or not if number is totally divide by 2 then number is even else number is odd.


How can you write an algorithm for getting autoformic numbers?

Perhaps you mean an automorphic number? Loop through a series of numbers - for example, all numbers from 1 to 10,000 - and check each of the numbers, whether the condition applies. The condition in this case is that if you square the number, the last digits represent the original number.


How do you print non-prime numbers in java?

Loop through some numbers - for example, 2 through 100 - and check each one whether it is a prime number (write a second loop to test whether it is divisible by any number between 2 and the number minus 1). If, in this second loop, you find a factor that is greater than 1 and less than the number, it is not a prime, and you can print it out.


Write a programme in bluej to accept two numbers and check whether they are twin prime or not.?

class Twin_Prime { void Prime(int n,int m) { int a=0; int b=0; for(int i=1;i<=m+n;i++) { if(m%i==0) { a=a+1; } if(n%i==0) { b=b+1; } } if(a==2) if(b==2) { if(m-n==2) { System.out.print("The numbers "+m+" and "+n+" are Twin Prime"); } else if(n-m==2) { System.out.print("The numbers "+m+" and "+n+" are Twin Prime"); } } else { System.out.print("They are not Twin Primes"); } } }

Related questions

Is 121618 a pythagorean?

If you mean the three numbers, 12, 16, and 18 - try it out! Use a calculator to check whether 122 + 162 = 182 or not.


Write an algorithm and draw a corresponding flowchart to find the greatest number and its position among the 6 given numbers?

Algorithm Step1: Read A, B, C Step2: If A > B is True, then check whether A > C, if yes then A is greatest otherwise C is greatest Step3: If A > B is False, then check whether B > C, if yes then B is greatest otherwise C is greatest Give the Flowchart Answer


Is a calendar a table or a flowchart?

It is a table, or a series of tables, depending on whether it is the year as a whole or month by month.


Draw a flowchart to print prime numbers from 1 to 100?

The flowchart above starts with the number 2 and checks each number 3, 4, 5, and so forth. Each time it finds a prime it prints the number and increments a counter. When the counter hits 100, it stops the process. To determine whether a number is prime, it calls the function "IsThisNumberPrime" which is shown at the top of this page.


Is 788 equal to788?

Absolutely! That is like asking whether the Pythagorean Theorem has to do with right triangles!


Flowchart to check whether an integer is positive or negative?

I'll write it as pseudocode; you can easily convert it to a flowchart. If your number is more than 0 (Your number is positive) else if your number is less than 0 (your number is negative) else (your number is equal to zero)


How Pythagorean theorem is used?

If two sides of a triangle with a right angle are known, the Pythagorean Theorem can help you find the third one. It can also be used to verify whether a certain triangle is, indeed, a right triangle (if the three sides are known).


What can be found using the pythagorean theorem formula?

If you know two sides of a right triangle, the Pythagorean Formula lets you find the third side. Also, if you know all three sides of a triangle, you can confirm whether it is, or isn't, a right triangle.


How can you determine whether or not the sides of a triangle form a right triangle using Pythagorean triples?

If the lengths of the sides of the triangle can be substituted for 'a', 'b', and 'c'in the equationa2 + b2 = c2and maintain the equality, then the lengths of the sides are a Pythagorean triple, and the triangle is a right one.


Plus and minus equals?

That depends what you mean with "and": whether you want to add the numbers, multiply them, etc.That depends what you mean with "and": whether you want to add the numbers, multiply them, etc.That depends what you mean with "and": whether you want to add the numbers, multiply them, etc.That depends what you mean with "and": whether you want to add the numbers, multiply them, etc.


One of two numbers that can be both the area and perimeter of a triangle whose side lengths are a pythagorean triple?

For the 6:8:10 triangle, area = perimeter = 24. Also, for the 5:12:13 triangle, area = perimeter = 30. Whether these are indeed the only examples I am not sure. That would take some proving.


One of 2 numbers that can be both the area and perimeter of a triangle whose side lengths are a Pythagorean triple?

For the 6:8:10 triangle, area = perimeter = 24. Also, for the 5:12:13 triangle, area = perimeter = 30. Whether these are indeed the only examples I am not sure. That would take some proving.