1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Agata [3.3K]
4 years ago
9

In C++, write a program that asks the user to input an integer and then calls a function named

Computers and Technology
1 answer:
barxatty [35]4 years ago
7 0

Answer:

//Program in C++.

// header

#include <bits/stdc++.h>

using namespace std;

// function to multiply number with 2-10

void multiplicationTable(int num)

{

   cout<<"Number when multiplied with 2-10:"<<endl;

   for(int a=2;a<=10;a++)

   {

   // multiply number with 2-10

      cout << num << " * " << a << " = " << num*a << endl;

   }

}

// driver function

int main()

{

// variable

   int num;

   cout<<"Enter a number:";

   // read number from user

   cin>>num;

   // call the function

   multiplicationTable(num);

return 0;

}

Explanation:

Read a number from user and assign it to variable "num".Call the function  multiplicationTable() with parameter "num".In this function, multiply number  with each from 2 to 10 and print the value.

Output:

Enter a number:5                                                                                                          

Number when multiplied with 2-10:                                                                                          

5 * 2 = 10                                                                                                                

5 * 3 = 15                                                                                                                

5 * 4 = 20                                                                                                                

5 * 5 = 25                                                                                                                

5 * 6 = 30                                                                                                                

5 * 7 = 35                                                                                                                

5 * 8 = 40                                                                                                                

5 * 9 = 45                                                                                                                

5 * 10 = 50

You might be interested in
Suppose that a program asks a user to enter multiple integers, either positive or negative, to do some calculation. The data ent
KatRina [158]

Answer:

d) An alphabetic character

7 0
3 years ago
What is Computer categories
MA_775_DIABLO [31]
Computer Categories are like

Supercomputers, mainframe computers, microcomputers, mobile computers, minicomputers.

I hope that this is the type of answer that you were looking for.
5 0
3 years ago
Which of the following is NOT true about variables?
VikaD [51]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The value stored by a variable can be changed after it is assigned(true).

The value of a variable can be changed after it is assigned, for example:

int a=10;

and we can change the value of variable a in letter program such as:

a=15;

Variables are a name for a spot in the computer's memory (true).

it is true, because the variables value stored in the computer's memory and we can access theses values by their name (variable name). so Variables are a name for a spot in the computer's memory.

Variable names can be words: such as temperature or height (true).

Yes, the variable name can be words such as height, width, temperature etc.

The value stored by a variable cannot be changed after it is assigned (false).

It is noted that the value stored by a variable can be changed after it is assigned. However, it is noted that is some programming language, you can't change the value of static variable.

3 0
4 years ago
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the Web pages for a particular
Firlakuza [10]

Answer:

A

Explanation:

thethe more you have attached the more people are going to know your product so that it's going to be a long process which people can introduce to their friends

3 0
3 years ago
10 POINTS
Sunny_sXe [5.5K]

Answer:

True

Explanation:

They want to focus on their customers and their interests, so they market their products to a specific audience. hope this helps :)

4 0
3 years ago
Other questions:
  • To display the control panel window, first right-click ____ and then click control panel.
    5·1 answer
  • Which is a function of network media?
    11·2 answers
  • In Microsoft Word you can access the _______ command from the "Mini toolbar".
    9·1 answer
  • Which type of multiplexing divides transmission opportunities into slots of 125 microseconds with position inside each slot rese
    10·1 answer
  • Physical activity such as sports or even a brisk walk can help reduce
    7·2 answers
  • A cybersecurity analyst is currently investigating a server outage. The analyst has discovered the following value was entered f
    9·1 answer
  • To find out how much ram is installed on a machine, in windows go to the user: a power ______ is a part inside a computer case t
    6·1 answer
  • ______ are used to store all the data in a database.
    7·1 answer
  • A tornado destroyed many
    6·2 answers
  • You are setting up a small network. The customer has decided to change his internet service provider (ISP) to EtherSpeed. The IS
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!