Answer:
#program in Python
#read until user Enter an integer
while True:
#try block to check integer
try:
#read input from user
inp = int(input("Enter an integer: "))
#print input
print("The integer is: ",inp)
break
#if input is not integer
except ValueError:
#print message
print("Wrong: try again.")
Explanation:
In try block, read input from user.If the input is not integer the print a message in except block.Read the input until user enter an integer. When user enter an integer then print the integer and break the loop.
Output:
Enter an integer: acs
Wrong: try again.
Enter an integer: 4a
Wrong: try again.
Enter an integer: 2.2
Wrong: try again.
Enter an integer: 12
The integer is: 12
A programming language is not used to talk from human to human. It is used to talk from a human to a computer. Computers are very dumb compared to us, so they need to be taught or spoken to in simple terms. Asking them something complex is far beyond their understanding, as they cannot learn anything beyond what has already been taught to them. Using print: “Hello, World” is the way to tell them to do stuff way less complex than when we say ‘write the words Hello, World on the screen’. A programming language is also not very easy to create. Talking to a computer in a dumb way reduces the process to make a new language for the computer to understand.
A sample HTML code that contains headers, paragraph tags, hyperlinks is
- <h1> This is a header </h1>
- <h2> This is a subtitle heading </h2>
- <p> This is a paragraph </p>
- <a href=”www.brainly.com”> Brainly Website </a>
<h3>What is HTML?</h3>
This is the building block of a website and is an acronym that means Hypertext Markup Language.
The HTML code that can be used to add a sample image is: "<img src="pic_Brainly.jpeg" alt="Brainly" width="500" height="333">
The src code means the specific location of the external resource
The width and height show how tall and wide the image would be.
The alt shows the alternative information for the image that can be seen when a person hovers over the image on the website.
Read more about HTML and CSS here:
brainly.com/question/24051672
#SPJ1
11. is battle of the bulge
12. rationing
13. trade embargo act
14. germany won the battle is not true
15. force jews to wear stars sown to their clothing to be caught without was punishable by death
Answer:
Option a, b, d, f, and j is legal method calls.
Explanation:
In the given question some information is missing, that is the method definition which can be described as follows:
Method definition:
int x =2, y=3; //defining integer variable
int mathMethod (int x) //method definition
{//method body
int z=x+y; //calculate value
return z; //return value
}
In the given question option a, b, d, f, and j is legal, because these options follow the correct syntax, and other option were incorrect which can be defined as follows:
- In option c, It is illegal because it accepts only one parameter.
- In option e, It is accepts long number, that's why it is illegal.
- In option g, It accepts float value, that's why it is illegal.
- In option h, It doesn't accepts any parameter.
- In option i, It isn't use in method.