Answer:
CLS
M=2
SUM=0
DO WHILE M<=50
SUM=SUM+M
M=M+2
LOOP
PRINT " The sum of all even numbers between 1 and 50 is"; sum
Answer:
The statement in Python is:
print("The average pH of citrus fruits is ",avg_citrus_pH)
Java
System.out.print("The average pH of citrus fruits is "+avg_citrus_pH);
C++
cout<<"The average pH of citrus fruits is "<<avg_citrus_pH;
Explanation:
The programming language is not stated; so, I answered the question in 3 languages (Python, Java and C++)
Assume that avg_citrus_pH has been declared and initialized; all you need to do is invoke a print statement and then append the variable
In Python, use print()
In c++, use cout<<
In Java, use System.out.print()
So, the statements are:
Python:
print("The average pH of citrus fruits is ",avg_citrus_pH)
Java
System.out.print("The average pH of citrus fruits is "+avg_citrus_pH);
C++
cout<<"The average pH of citrus fruits is "<<avg_citrus_pH;
Answer:
<u>720</u> possible PIN can be generated.
Explanation:
To calculate different number of orders of digits to create password and PIN, we calculate permutation.
Permutation is a term that means the number of methods or ways in which different numbers, alphabets, characters and objects can arranged or organized. To calculate the permutation following formula will be used:
nPr = n!/(n-r)!
there P is permutation, n is number of digits that need to be organize, r is the size of subset (Number of digits a password contains)
So in question we need to calculate
P=?
where
n= 10 (0-9 means total 10 digits)
r= 3 (PIN Consist of three digits)
So by using formula
10P3 = 10!/(10-3)!
=10!/7!
= 10x9x8x7!/7!
= 10x9x8
= 720
The least common multiple (LCM) of 78, 90, and 140 is: 16,380
78 × 210 = 16,380
90 × 182 = 16,380
140 × 117 = 16,380