AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Contents · Computing

Loop control and swapping values

Lessons 46 · 1 lessons · M. R. Fayziyeva, D. M. Sayfurov, N. S. Xaytullayeva. Informatics and Information Technologies, Grade 9. “Nashriyot uyi Tasvir”, Tashkent, 2020
Answers are for parents and teachers.
1
Print the numbers from 1 to 10 but use break when 7 is reached. Write the result.
2
Write a program that adds the typed numbers and stops when 0 is typed (8 for 3, 5, 0).
3
Print the numbers from 1 to 12 that are not multiples of 4, using continue.
4
If x = 5 and y = 8, what are x and y after x, y = y - x, x + y?
Story of the Week · The Khwarizmi WayThe fair standClose the week: all of this week’s subjects in one storyRead →