Boolean can be use to check math as follows;
<h3>What are Booleans?</h3>
Booleans is a datatype with two possible values namely True and False.
The Boolean can be denoted as bool.
In programming its often use to check if a mathematical expression or statement are True or False.
Therefore, let's use it in mathematical expression;
6 < 5
8 > 7
6 == 9
The first expression will return False.
The second expression will return True.
The third expression will return False.
learn more on Booleans here: brainly.com/question/14120893
#SPJ11
<span>public void myMethod(int w, int y, int z) {
</span>int a, b, c, d, e, f, g, h, i, j, k, l;
<span>a = w * z;
</span>b = w * z + y;
c = w * -z;
d = w * --z + y++;
e = w * z-- + ++y<span> ;
</span>f = w + z * y;
g = w – y + z;
h = (w + y) * z;
i = y / w;
j = y / z;
k = w % y;
<span>l = y % w;
</span>System.out.println( "%d %d %d %d %d %d %d %d %d %d %d %d", a,b,c,d,e,f,g,h,i,j,k);
}
To use
myMethod(2, 7, 12);
A. because the form is about stories from events in a writer's life
Answer:
Explanation:
iname=input("Enter the file name: ")
inputfile=open(iname,'r')
lines=[]
for line in inputfile:
lines.append(line)
inputfile.close()
print("The file has ",len(lines)," lines")
while True:
linenumber=int(input("Enter the line number or 0 to quit: "))
if linenumber==0:
break
elif linenumber > len(lines):
print("Error: line number must be less than ", len(lines))
else:
print(linenumber, " : ", lines[linenumber - 1])