Computer Science, asked by sujeetbhk382, 1 year ago

write the program
in scratch to print the number 1-10

Answers

Answered by shaleen42
0
Hey friend, I am a commerce student but I know computer as well. Plz mark me brainliest.

for (i <- 1 to 10) println(i + " " + i*i)

(1..10).each { |x| puts x, x*x }

Type this in REPL ! Look at partial function application here!

zip [1..10] map (**2) [1..10] -- in case you need its string representationunwords $ map show $ zip [1..10] $ map (**2) [1..10]

sujeetbhk382: i dont know what you have written there actually i am in 7 class
Similar questions