The numbers 5, 7, 9, and 11 are the output.
I hope this helps!
Answer:
Enter time 1 HH:MM:SS8:5:22
Enter time 2 HH:MM:SS7:24:37
0:40:45
Explanation:
The program for above in Python is:
from datetime import datetime
s1 = input("Enter time 1 HH:MM:SS")
s2 = input("Enter time 2 HH:MM:SS")
Format1 = '%H:%M:%S'
tdiff = datetime.strptime(s1, Format1) - datetime.strptime(s2, Format1)
print(tdiff)
We are using the datetime class in datetime module for using strptime to find the difference between the two times.
Answer:
"Causes text to be printed on the screen" is the right answer for the above question.
Explanation:
In a python programming language, the "print()" function is used to display the text or value of a variable (which is described as an argument of the "print()" function) on the screen. The syntax of the "print()" function is stated below--
print("value of text which needs to print on the screen");
Hence "Causes text to be printed on the screen" is the right answer because it means the same which described above while the other is not because--
- "causes your printer to print out a page of paper" states that the "print()" function print a page with the help of printer but it is a wrong statement for print() function.
- "saves data to a file on your disk" states that the print function is used to save the data on a disk but it is a wrong statement for print() function.
- "none of the above" states that above-defined none options are correct but one option is correct.
FALSE because if you share it, the whole network can view it.
Answer:
#include <stdio.h>
void main()
{
int num;
printf("Input a number :");
scanf("%d", &num);
if (num >= 0)
printf("%d is a positive number \n", num);
else
printf("%d is a negative number \n", num);
}
Explanation:
good luck.
hope it helped you.
pls mark brainleist