60 likes | 287 Views
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.
E N D
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 Display “Numbers”, “Squares” number 1 sum sum + square number <= 10 square number * number Display number, square True number number + 1 False Display “-----------”, sum End
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
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