Wiki User
∙ 12y agoAccept 3 natural numbers and check whether it firms pythagorean triplet
Wiki User
∙ 12y agoClinton Raphael
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
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.
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.
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.
Design an If-Then statement (or a flowchart with a single alternative decision structure) that assigns 0 to the variable b and assigns 1 to the variable c if the variable a is less than 10. Design an If-Then-Else statement (or a flowchart with a dual alternative decision structure) that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to the variable b. The following pseudocode contains several nested If-Then-Else statements. Unfortunately, it was written without proper alignment and indentation. Rewrite the code and use the proper conventions of alignment and indentation. If score < 60 Then Display "Your grade is F." Else If score < 70 Then Display "Your grade is D." Else If score < 80 Then Display "Your grade is C." Else If score < 90 Then Display "Your grade is B." Else Display "Your grade is A." Design nested decision structures that perform the following: If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2. Rewrite the following If-Then-Else If statement as a Select Case statement. If selection == 1 Then Display "You selected A." Else If selection == 2 Then Display "You selected 2." Else If selection == 3 Then Display "You selected 3." Else If selection == 4 Then Display "You selected 4." Else Display "Not good with numbers, eh?" End If Design an If-Then-Else statement (or a flowchart with a dual alternative decision structure) that displays “Speed is normal” if the speed variable is within the range of 24 to 56. If speed holds a value outside this range, display “Speed is abnormal.” Design an If-Then-Else statement (or a flowchart with a dual alternative decision structure) that determines whether the points variable is outside the range of 9 to 51. If the variable holds a value outside this range it should display “Invalid points.” Otherwise, it should display “Valid points.” Design a case structure that tests the month variable and does the following: If the month variable is set to 1, it displays “January has 31 days.” If the month variable is set to 2, it displays “February has 28 days.” If the month variable is set to 3, it displays “March has 31 days.” If the month variable is set to anything else, it displays “Invalid selection.” Write an If-Then statement that sets the variable hours to 10 when the flag variable minimum is set. End If End If End If End If
If you mean the three numbers, 12, 16, and 18 - try it out! Use a calculator to check whether 122 + 162 = 182 or not.
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
It is a table, or a series of tables, depending on whether it is the year as a whole or month by month.
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.
Absolutely! That is like asking whether the Pythagorean Theorem has to do with right triangles!
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)
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).
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.
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.
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.
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.
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.