Hi, you haven't provided the programing language, therefore, we will use python but you can extend it to any programing language by reading the code and the explanation.
Answer:
n1 = int(input("First numeber: "))
n2 = int(input("Second numeber: "))
for i in range(5):
r1 = n1%10
r2 = n2%10
print(r1+r2)
n1 = n1//10
n2 = n2//10
Explanation:
- First, we ask for the user input n1 and n2
- We create a for-loop to calculate the sum of each place-value of two numbers
- We obtain the last number in n1 by using the mod operator (%) an the number ten this way we can always take the last value, we make the same for n2
- Then we print the result of adding the last two numbers (place value)
- Finally, we get rid of the last value and overwrite n1 and n2 to continue with the process
Answer:
3 3
Explanation:
The operator modulus '%' is gives the reminder of the number.
for example:
7%2 it gives the result 1 because 1 is reminder after divided by 2.
Initially the value of funny is 7 and serious is 15.
then, 15 is modulus by 2 which gives 1 and it store in the funny.
After that, if else statement check for condition.
funny != 1 this condition is FALSE because Funny is equal to 1.
it moves to else if part Funny == 2 condition again FALSE it then move to else part and execute the statement Funny contain 3 and serious contain 3.
and then display.
Therefore, the answer 3 3.
Answer: Internet layer in TCP/IP stack is used for the transmitting and exchanging of information or message between the source and destination in computer systems.The main functions performed by this layer are as follows:-
- It transfers the message to the network interface layer
- The correct information route and destination is established
- Prefers intelligent routing technique by choosing the shortest route among all paths
- If any error case of transmission arises then another alternate path for datagram transmission is used.
Answer:
Arrays
Explanation:
Solidity is a feature in blockchain smart contracts. It is used in a program to create an interface for transacting with users of an application.
Just like in other programming concepts, the solidity environment has several data types like the unsigned integer and signed integers.
The array is a data type or structure in solidity used to hold values of similar data types.
He said Read a natural number n with a maximum of 16 digits. Either q the number of digits in the number born by removing a single digit number n is given by writing a sequence of q numbers. To be displayed in ascending order, the numbers in this sequence which not null are prime number b. input data input File numere16.in contains the first line number b. output Data the output file URnumere16.out will contain the first line separated by a space, that respects the ownership requirement. Restrictions and details 2 ≤ q ≤ 16 if we don't have any numbers that respects us permission requirement message does not exist. if you can help him read this