Answer the question
In order to leave comments, you need to log in
How to draw a flowchart for this task?
Good day.
I've already broken my head.
you need to draw up a flowchart, condition: For an integer k (from 1 to 99), print the phrase “I am a year old”, while in necessary cases the word “years” is replaced by the word “year” or “years”. (For example: at k=76 “I am 70 years old”, at k=15 “I am 15 years old”, at k=23 “I am 23 years old”, etc.)
Answer the question
In order to leave comments, you need to log in
Write a program and draw a diagram based on it.
It's simple here. If the number is less than 10 and more than 14, then divide by 10 with a remainder and, depending on the remainder, determine the desired declination. From 10 to 14 we determine manually.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question