Answer:
It helps to put the code in to your working memory and you will have a greater ability to problem solve.
Explanation:
If your just a beginner, then writing the code out your self will help you learn what each line means. Also, you will see the effects that each line has. Of course, this is really dependent on how much code you've written before and how much code your dealing with.
The area of a square is simply the square of the side. So, you only need to write a program that receives a number as input, which is the side of the square, and returns that number squared, which will be the area of the square.
You didn't specify any language, so for example here's a C implementation that receives the side from the user and returns the area:
#include <stdio.h>
int main()
{
double side, area;
do{
printf("Enter the side of the square (must be >0): ");
scanf("%lf", &side);
} while(side<=0);
area = side * side;
printf("The area is %lf", area);
}
Answer:
c.B2b digital transaction
Explanation:
yan lang po sana makatulong
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;
}
Answer:
its okay. i mean like you have to do a bunch off stuff. andsomtimes it gets a little boring.
Explanation:
i am doing online school.