Answer:
java” xargs grep -i "Hello World”
Answer:
Write a recursive Scheme function power(A, B) that takes two integer parameters, A and B, and returns A raised to the B power. A must be a positive value, but B maybe a negative value.
Explanation:
Answer:
Option D: If it is the month of January, then the temperature is cool.
Explanation:
A conditional statement is the one having an if condition in it that says, if the condition is true proceed to the next statement, else not.
Given statements are:
- If it is the month of January, then it is winter.
This can be written as: if (January)⇒Winter
- If it is winter, then the temperature is cool.
This can be written as: if (winter)⇒ Temperature(cool)
So by combining both the statements, the winter clause will be connected and we get:
if(January)⇒Temperature (cool)
This can be written as:
- If it is the month of January, then the temperature is cool.
So, Option D is the correct answer.
i hope it will help you!
Answer:
Following are the python code to print the given pattern:
print('FOURTH') # using print method
for i in range(10): #using loop to count numbers
for j in range(10-i): # use loop to print asterisk value in reverse order
print("*", end=" ") #print value
print("") #using print method for space
Output:
Please find the attachment.
Explanation:
The description of the above python program can be described as follows:
- In the first line, use the print method, that print message "FOURTH".
- In the next line, two for loop is used in which the first loop counts the number to be print value, inside the loop another for loop is used.
- In this loop, it prints asterisk values in its reverse order and for new lines, it will use the print method with a single white space.