Answer:
There is no need to make an algorithm for this simple problem. Just add the two numbers by storing in two different variables as follows:
Let a,b be two numbers.
c=a+b;
print(c);
But, if you want to find the sum of more numbers, you can use any loop like for, while or do-while as follows:
Let a be the variable where the input numbers are stored.
while(f==1)
{
printf(“Enter number”);
scanf(“Take number into the variable a”);
sum=sum+a;
printf(“Do you want to enter more numbers? 1 for yes, 0 for no”);
scanf(“Take the input into the variable f”);
}
print(Sum)
Explanation:
hi there answer is given mar me as brainliest
Answer:
The problem would be the battery
Explanation:
The reason is becuse the battery might be bad or have a shortage in it hope this helps :) and good luck!
Answer:
1. =CONCATENATE(" John"," ","Smith")
2. =(" John"&" "&"Smith")
Explanation:
Given
Two separate strings; "John" and "Smith"
Required
2 separate formulas to concatenate both strings to form " John Smith"
There are several ways to concatenate strings in Microsoft Office Excel; one of the methods is using the concatenate function while the another method is using the traditional & operator.
Using the concatenate function, the formula is as follows
=CONCATENATE(" John"," ","Smith")
This function will combine the " John", " " and "Smith" to give a new string " John Smith" (without the quotes).
Using the traditional & operator may be a little bit difficult (and not frequently used) but the formula is as follows;
=(" John"&" "&"Smith")
The result will be the same as (1) above
Answer:
ArrayList a contains [2, 3, 3, 3, 4, 5, 3, 2, 1]
Explanation:
Given
The removeValue method
Required
The content of ArrayList a, after the method is called
From the question, we understand that arraylist a is:
The function fails when the value to be removed appear consecutively in the list.
4 appears in index 5 and 6 of the list. Only one of the 4's will be removed
So, the updated list will be: [2, 3, 3, 3, 4, 5, 3, 2, 1]