The voluntary linkage of computer networks around the world is called the
internet which began to be used in the 1990s
. It initially began being used in the 1960s by scientists with
the aim of exchanging information about research. Between the year 1995 and
late 2002, the number of those connected to the internet rose from 26
million to more than 600 million. Currently, internet has now become a way of
life.
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:
I mean if your talking about games then just try Cool math I will give link in comments
Explanation: