Program p1;
var a,b,c,d : integer; {i presume you give integer numbers for the values of a, b, c }
x1, x2 : real;
begin
write('a='); readln(a);
write('b='); readln(b);
write('c=');readln(c);
d:=b*b - 4*a*c
if a=0 then x1=x2= - c/b
else
if d>0 then begin
x1:=(-b+sqrt(d)) / (2*a);
x2:=(-b - sqrt(d))/(2*a);
end;
else if d=0 then x1=x2= - b /(2*a)
else write ("no specific solution because d<0");
writeln('x1=', x1);
writeln('x2=',x2);
readln;
end.
Answer: Change this however you'd like :)
Explanation:
for n in range(100):
print("priya")
print()
for n in range(10):
for i in range(10):
print("priya", end= " ")
print()
print()
tempList = []
for n in range(1, 1001):
tempList.append(n)
print(sum(tempList))
print()
for n in range(1, 9):
for i in range(1, 9):
print(n*i)
print()
x = 100
while x != 0:
print(x)
x -= 1
Answer: d. should be lowercase.
Explanation:
ID attributes are case sensitive for the most part - DOM and Java Script - which means that the ID attribute does not always have to be lowercase.
It can be uppercase as well. ID attributes can also start with a number and as of HTML 5 can start with a special character as well. Finally, the ID attribute must always be unique within each document.