1 / 6

COTI 3101

COTI 3101. Ciclos. Class Square Start Main. number : integer. number  1. number <= 10. Display number, number * number. True. number  number + 1. False. End. Class SumofSquare Start Main. number : integer square : integer sum : integer. sum  0.

adolph
Download Presentation

COTI 3101

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COTI 3101 Ciclos

  2. Class Square Start Main number : integer number  1 number <= 10 Display number, number * number True number  number + 1 False End

  3. Class SumofSquare Start Main number : integer square : integer sum : integer sum  0 Display “Numbers”, “Squares” number  1 sum  sum + square number <= 10 square  number * number Display number, square True number  number + 1 False Display “-----------”, sum End

  4. Class Square Start Main number : integer n : integer Display “Entre el valor hasta el quequierellegar” Input n number  1 number <= n Display number True number  number + 1 False End

  5. Class PositivePowers Start Main exponent : integer number : integer power : integer Display “Entre el exponente” Input exponent exponent> 0 True number  1 False number  number + 1 power  Math.pow(number, exponent) number <= 10 Display number, power True False End

More Related