00:01
In this video, we're going to be learning how to create a trauma program that will print out the squared and cubed input.
00:16
Okay, so to get started, we need to make sure that we've imported our scanner so that we're able to get input from the user.
00:27
I also want to make sure we've created a scanner variable.
00:31
Next, you want to create a message.
00:33
Which we'll call it system that out it's the line and we'll tell the user to enter a member.
00:48
For this number, we'll say, we'll call this integer, username, and to tag this or connect the user input to this variable.
01:05
Use our scanner variable, which i'll just call it sc for now.
01:11
And then that next here and we've stored our integer so if we want to get the products or are the square of the user's input we use user num times user remember that when we squared it is just simply multiplied by the amount of times another one and we'll call it cube the exact same thing but we're going to multiply it apply it by itself three times.
01:59
Okay, so now we're going to get two more integers from the user.
02:13
So i'll ask them to enter number again, call this a.
02:22
And we're also going to tie this to our scanner so we can still use your input and we'll print out the sum and product...