Answer:
I'm pretty sure it's the first answer.
The SQL is used to change a table's structure by:
The use of the SQL ALTER TABLE command.
<h3>How is it done?</h3>
The SQL ALTER TABLE command is known to be that which is often used to alter the structure of an existing table.
It is known to help one to be able to add or delete columns, make or destroy indexes, alter the kinds of existing columns, rename columns or the table itself.
Note that It can also be used to alter the comment for any kind of table and type of the table therein.
Learn more about SQL from
brainly.com/question/25694408
#SPJ1
Answer:
Explanation:
The following code is written in Python and is a function that loops three times asking for the last name and first name. Then it uses this information to create a username. Finally, each of the names and usernames is printed on the screen.
def userName():
for x in range(3):
last_name = input("What is your last name: ")
first_name = input("What is your first name: ")
username = first_name[:3] + "#" + last_name[-3:]
print(last_name + ", " + first_name)
print(username)
Answer:
The program to this question can be given as:
Program:
public class Main //define class.
{
public static void main(String[] as) //define main method.
{
int n=5; //define variable n and assign positive value.
int i,j; //define variable
for (i = 7; i>=1; i--) //outer loop.
{
for (j = 0; j< i; j++) //inner loop.
{
System.out.print("*"); //print asterisks.
}
System.out.println(); //line break.
}
}
}
Output:
*****
****
***
**
*
Explanation:
The description of the above code can be given as:
- In the above java programming code firstly we define a class that is "Main". In this class we define a main method in the main method we define a variables that is "n" in this variable we assign a positive value. The we define another integer variable that is i,j this variable is used in the loop.
- Then we define a loop. for prints asterisks values in reverse triangle, we nested looping concept. In nested looping, we use in loop in this loop we use the i and j variables that print the asterisks value.