00:01
In this video we're going to be getting user input.
00:04
And from the input, we're going to convert an integer that is between ranges of 32 and 126 to a character.
00:18
So to get started, you want to first get an integer from the user.
00:26
Call it a user numn.
00:28
We'll say, ask the user to enter, and number.
00:40
I will convert this input to an integer.
00:46
Also copying pieces.
00:50
So to user float, convert this to a float.
00:59
Our float is a decimal.
01:04
A decimal number.
01:07
So now you want to get a string, say user string.
01:15
Simply just get input.
01:18
A word.
01:22
Lastly, have a character.
01:29
Enter a character.
01:35
We see r to convert this to a character.
01:41
Okay.
01:43
Okay.
01:46
So now we have converted our user input to an integer, a float.
01:53
We have a string and we converted our string to a character.
02:03
So if we want to to convert our integer to a number, we simply just create a variable.
02:16
To char and use our input.
02:32
We convert to a character.
02:43
There we go.
02:44
And this will print our characters.
02:47
But first before, if you want to print this, we need to get arranged.
02:53
So if the user num is greater than 32, and the user is less than our equal to 12.
03:26
Then we're going to print our character, or means our integer, i mean, sorry, integer.
03:35
So username converted to an character is and then we'll do into char.
03:59
Okay.
04:02
And then else we can print on a new line.
04:12
Actually we'll print on the variable so we'll do a username and a new line.
04:21
Oops, in the quotes, of course.
04:29
And then user float, new line, user stream, and then a new line, and then our user character.
04:53
Our character.
04:56
Oops, it should be character.
04:59
And a new line.
05:03
Okay...