Answer:
1, 4, 7
Explanation:
The instruction in the question can be represented as:
for i in range(1,10,3):
print i
What the above code does is that:
It starts printing the value of i from 1
Increment by 3
Then stop printing at 9 (i.e.. 10 - 1)
So: The sequence is as follows
Print 1
Add 3, to give 4
Print 4
Add 3, to give 7
Print 7
Add 3, to give 10 (10 > 10 - 1).
So, it stops execution.
The answer to the given picture is - Microsoft word's spell checker only recognizes very common words. Microsoft word has it's own dictionary which will be compared to the texts on your document. If they see an unfamiliar word they will underline it with red. Anyways you can add your own words and names to the custom dictionary.
Online Privacy is well, our privacy while on the internet. If they have repealed that, then we have no privacy while on the internet. I feel like now a days there is no privacy at all anywhere. Everywhere you go, there are cameras watching you. So for them to take away online privacy is pretty messed up.
Choosing the "Quick Print" button will print to the default print (Answer is B). The quick print function is accessible in the Quick Access Tool bar . By clicking the drop down arrow of the quick access tool bar it will let you choose different types of default access including your Quick print.
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// function to compute sum and product
void square(int input)
{
// variable to store the square of number
long long squ_num;
calculate the square of number
squ_num=pow(input,2);
// print the output
cout<<"square of "<< input<<" is: "<<squ_num<<endl;
}
// driver function
int main()
{
int n;
// read the number until user enter 0
do{
cout<<"enter a number!! (0 to stop):";
// read the input from user
cin>>n;
// call the function to calculate square of input number
square(n);
}while(n!=0);
return 0;
}
Explanation:
Declare a variable "n" to read the input number from user.Call the function square() with parameter "n".In this function, it will calculate the square of the input number and print it.This will repeat until user enter 0 as input.Program will ends when user give 0 as input.
Output:
enter a number!! (0 to stop):5
square of 5 is: 25
enter a number!! (0 to stop):7
square of 7 is: 49
enter a number!! (0 to stop):11
square of 11 is: 121
enter a number!! (0 to stop):0