Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,420 --> 00:00:02,670
So welcome back, ladies and gentlemen.
2
00:00:03,030 --> 00:00:10,710
And now once you've seen a simple example of how to print 10 asterisks to a screen using a while loop,
3
00:00:10,800 --> 00:00:15,780
I would like to give you the following challenge, which is just a little bit more sophisticated than
4
00:00:15,810 --> 00:00:16,230
that.
5
00:00:16,350 --> 00:00:21,600
But before we proceed with this challenge, I would like to ask you to close the code section, as well
6
00:00:21,600 --> 00:00:28,470
as to put aside all relevant nodes related to printing out the ten asterisk that we've done previously
7
00:00:28,590 --> 00:00:32,340
and try to solve this challenge from scratch on your own.
8
00:00:32,490 --> 00:00:39,900
This will help you to understand more clearly the syntax of how you write this code and how you use
9
00:00:40,170 --> 00:00:42,630
the while loops in your program.
10
00:00:42,690 --> 00:00:44,550
So the challenge goes like this.
11
00:00:45,000 --> 00:00:51,720
First of all, write a program that gets from the user a number of asterisks and the program should
12
00:00:51,720 --> 00:00:55,230
bring to the screen the specified number of asterisks.
13
00:00:55,320 --> 00:01:02,430
So if the user provides 10 as an input than 10 asterisks are going to be printed out on the screen.
14
00:01:03,090 --> 00:01:10,800
But if the user provides 15000 as an input, then 15000 asterisk are going to be printed out to the
15
00:01:10,800 --> 00:01:11,280
screen.
16
00:01:12,000 --> 00:01:19,050
So that differentiates just a little from our previous example by being more generic.
17
00:01:19,080 --> 00:01:25,320
We are developing to a more generic program that will be capable of printing out any number of fast
18
00:01:25,320 --> 00:01:30,390
risks to the screen and not just the intendant 10 as we've done previously.
19
00:01:31,050 --> 00:01:32,190
So good luck, guys.
20
00:01:32,220 --> 00:01:36,060
I hope you can solve this one on your Roen and I'll see you on the solutions, Speedie.
2157
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.