Answer:
for(var i=0; i<3; i++) {
penUp();
moveTo(100,120);
turnTo(180);
penDown();
moveForward(25);
}
Explanation:
The i variable is the loop dummy. The code block will be executed 3 times.
Answer:
INSERT INTO Movie(Title,Rating,ReleaseDate)
VALUES("Raiders of the Lost ArkPG",'PG',DATE '1981-06-15'),
("The Godfaher",'R',DATE '1972-03-24'),
("The Pursuit of Happyness",'PG-13',DATE '2006-12-15');
Explanation:
The SQL statement uses the "INSERT" clause to added data to the movie table. It uses the single insert statement to add multiple movies by separating the movies in a comma and their details in parenthesis.
Answer:
Program approach:-
- Using the header file.
- Using the standard namespace I/O.
- Define the main function.
- Display the number of terms.
- Display the Fibonacci series.
- Print the first two numbers.
Explanation:
Program:-
//header file
#include <iostream>
//using namespace
using namespace std;
//main function
int main() {
int n, s1 = 0, s2 = 1, nextTerm = 0;
//display the number of terms
cout << "Enter the number of terms: ";
cin >> n;
//display the Fibonacci series
cout << "Fibonacci Series: ";
for (int j = 1; j <= n; ++j) {
// Prints the first two terms.
if(j == 1) {
cout << s1 << ", ";
continue;
}
if(j == 2) {
cout << s2 << ", ";
continue;
}
nextTerm = s1 + s2;
s1 = s2;
s2 = nextTerm;
cout << nextTerm << ", ";
}
Answer:
Commercial HotSpots allows you mobility while regular wifi is a cheaper and reliable option while you are stale
Explanation: