Home
Resources
Latest reviews
Search resources
Forums
New posts
Search forums
Members
Current visitors
New profile posts
Search profile posts
What's new
New posts
New resources
New profile posts
Latest activity
Rules
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Community
Spammm
C++ learning help pls
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="0xf0rd" data-source="post: 60183" data-attributes="member: 17223"><p>If you are trying to use the Pythagoras theorem to check then it's very simple you need to square and add the first two numbers and check if they equal the square of the hypothonous </p><p></p><p>Pesudo:</p><p>Int number1</p><p>Int number2</p><p>Int hypothonous</p><p></p><p>do</p><p>scanf number1</p><p>While number <= 0</p><p></p><p>do </p><p>scanf number2</p><p>While number2 <= 0</p><p></p><p>Do</p><p>scanf hypothonous</p><p>While hypothonous <=0</p><p></p><p>Int one = (number1^2) + (number2^2)</p><p>Int two = hypothonous^2</p><p></p><p>If(one == two) then</p><p>Print right angle triangle</p><p>Else</p><p>Print ..</p></blockquote><p></p>
[QUOTE="0xf0rd, post: 60183, member: 17223"] If you are trying to use the Pythagoras theorem to check then it's very simple you need to square and add the first two numbers and check if they equal the square of the hypothonous Pesudo: Int number1 Int number2 Int hypothonous do scanf number1 While number <= 0 do scanf number2 While number2 <= 0 Do scanf hypothonous While hypothonous <=0 Int one = (number1^2) + (number2^2) Int two = hypothonous^2 If(one == two) then Print right angle triangle Else Print .. [/QUOTE]
Name
Verification
Name a popular topic discussed in the ugbase.eu community
Post reply
Home
Forums
Community
Spammm
C++ learning help pls
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top