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
You should really state what language you are using. I have produced your method in C#, and should be easily translatable in to any other language.
static void RotateRight<T>(T[] arr)
{
T temp = arr[arr.Length - 1];
for (int i = arr.Length - 1; i >= 0; i--)
{
if (i == 0)
arr[i] = temp;
else
arr[i] = arr[i - 1];
}
}
The answer is True bc it saves you time and is efficient
Circles
Area of Circle is
Total percentage increase in the area of the modified circle is 69%
Explanation:
(a) Given the diameter of the circle be d
Then the radius of the circle = r = d/2
and the area of the circle is given by:
Area(A) =
A =
A =
The area of circle is
(b)
The increase in percentage while changing the dimensions is given by the formula :
Total % increase = a% + b% - (a% * b%)/100
Where ,
a% is the percentage increase in side a
b% is the percentage increase in side b
Let the percentage increase in radius is : a%
Since a% = b%
So the formula is
Total increase % = a% + a% + (a% * a%)/100
Given here the diameter of the circle increases by 30% so a =30
Therefore, putting the value of a in the formula
Total increase % = 30% + 30% + (30% *30%)/100
Total increase % = 60% + 9%
Total increase % =69%
Therefore the total percentage increase in the area of the modified circle is 69%
To employ an access key, press and hold down the Alt key as you tap the access key.