Answer:
number = int(input("Enter a number: "))
if number % 2 == 0:
print("Even")
else:
print("Odd")
Explanation:
Currently taking python at school. On the last few lessons.
Answer:
left thinks about girls and right is school
Explanation:
yes
Answer:
#include <iostream>
using namespace std;
int main()
{
int birthMonth, birthYear;
cout << "Enter your Birth Month and Year" << endl;
cin>>birthMonth;
cin>>birthYear;
cout<<birthMonth;
cout<<"-";
cout<<birthYear<<endl;
return 0;
}
Explanation:
Using C++ Programming Language, Firstly we declare to variables to hold the values for the birthMonth and birthYear. We then used a cout statement to prompt the user to input values for month and year, then three cout statements are used to display the output according to the question's specification.
Answer:
Following are the code to this question:
public class M//defining class M
{
public static void main(String[] as)//defining main method
{
int i,j;//defining integer variable
for (i= 1; i <=10; i++)//defining for loop for print column
{
for (j = 1; j<=15; j++)//defining for loop for print rows
{
System.out.print("#");//print # value
}
System.out.println();//print space
}
}
}
Output:
###############
###############
###############
###############
###############
###############
###############
###############
###############
###############
Explanation:
The code defines a class "M" and the main method is defined within a class and two integer variables I and j" are defined within the primary procedure, while the next step defines two for a loop.
In the first loop, the column value is printed, and a further loop that prints the row value is declared inside the loop.
Answer:
Virtualization is the technology that is used to create virtual representation and version of the different devices like software, many storage devices and server.
It also help in organize the working framework where the structure isolates the asset into at least one execution situations.
The benefits of using the virtualization on the single machine are:
- The virtualization increased the productivity when it used in the cluster environment.
- We can able to access the different resources faster.
- The data center management is simple while using the virtualization in the cluster environment.
The drawback of using virtualization on single machine are:
- The virtual machine is less efficient as compared to the real machines.
- The virtual machine indirectly access the computer hardware system so that is why it is less efficient and also consume more power to run the system.