Answer:
def func1(x, y, z):
return z*3*y - x
x= int(input("Enter x"))
y= int(input("Enter y"))
z= int(input("Enterz"))
solveEquation=func1(x, y, z)
print (solveEquation)
Explanation:
Please check the answer section.
Explanation:
The below code has been written in C language
void rotateright(int list[], int n)
{
int x = list[n-1]
int i;
for (i = n-1; i > 0; i--)
list[i] = list[i-1];
list[0] = x;
}
void rotateleft(int list[], int n)
{
int x = list[0]
int i;
for (i = 1; i < n-1 ; i++)
list[i] = list[i+1];
list[n-1] = x;
}
int main()
{
int list[] = {x1, x2, x3, ... x(n-1),xn}
int i;
int n = sizeof(list);
rotateright(list, n);
rotateleft(list, n);
return 0;
}
Renewable energy is energy that is collected from renewable resources, which are naturally replenished on a human timescale, such as sunlight, wind, rain, tides, waves, and geothermal heat.
Answer:
i am still a beginner in this but i hope it helps.
- add scanner object;
- declare string FavColour;
- print msg to ask user for input
- print msg (" your favourite colour is " + FavColour)