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
Rudik [331]
3 years ago
13

Write a program that uses two input statements to get two words as input. Then, print the words on one line separated by a space

.
Computers and Technology
2 answers:
nikitadnepr [17]3 years ago
6 0

Answer:

Following is the C++ code for the question given :-

#include <iostream>

#include<string>

using namespace std;

int main() {

   string s1,s2;//two strings to store the words.

   cin>>s1;//Input statement.

   cin>>s2;//Input statement.

   cout<<s1<<" "<<s2<<endl;//printing both words in one line separated by space.

return 0;

}

Input:-

make

choices

Output:-

make choices

Explanation:

I have taken two strings two store two words.After taking the input I have printed both the strings which contains the words entered by the user separated by space.

denis-greek [22]3 years ago
5 0

A program that uses two input statements to get two words as input:

char word1[50];

char word2[50];

cout<<”The program will get two words and print in a single line”

cout<<”Enter the first word”

cin>>word1;

cout<<”Enter the second word”;

cin>>word2;

cout<<”Words in single line:\n”;

cout<<word1 <<” “ << word2;

return;

}

In this program 2 character array variables are declared to get two inputs which is of string. The user is given a message to enter the first word. Then the user is prompted to enter the second word. Together the output is printed using “cout” operator.  

You might be interested in
A keyboard shortcut to pasting in a document is to key _____.
m_a_m_a [10]
(Ctrl + V) is the shortcut for pasting.

Similarly, (Ctrl + C) is the shortcut for copying.
6 0
3 years ago
You can access decorative underlines and change their color through the ____ drop-down.
Dominik [7]
The answer is "underline gallery or underline drop-down". The user can access the decorative underlines and change the underline's color through the underline gallery. Underlines can be added for decoration purposes, to make your work look formal or creative.
4 0
3 years ago
Which is the best budget motherboard for i3 8100
Nataly [62]
I3 8100 is e best budget
7 0
3 years ago
One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to enter the total square feet in a tra
lana [24]

Answer:

Explanation:

Using Python programming language:

def get_number_acres(square_feet):

   return square_feet / 43560

sq_feet = input('Enter the number of square feets >>> ')

number_acres = get_number_acres(sq_feet)

7 0
3 years ago
Effective controls protect ______ from workplace hazards.
erastovalidia [21]

Answer:

Contact your team leader, supervisor, manager, etc.

3 0
3 years ago
Read 2 more answers
Other questions:
  • Discuss four ways you will use to reach all pupils who are living at a disadvantaged area.
    14·1 answer
  • The university computer lab’s director keeps track of lab usage, as measured by the number of students using the lab. This funct
    11·1 answer
  • In an e-credit card transaction the clearinghouse plays the following role:
    6·2 answers
  • Administrators who are wary of using the same tools that attackers use should remember that a tool that can help close an open o
    6·1 answer
  • Hello Answerers it would be great if you could answer this:
    12·2 answers
  • An example of a _________________ impact is when a consumer wants to buy a product on the internet but is afraid the company won
    8·2 answers
  • You are doing a Diffie-Hellman-Merkle key exchange with Danny using generator 2 and prime 29. You pick the secret number 4. What
    14·1 answer
  • Suppose you have a string matching algorithm that can take in (linear)strings S and T and determine if S is a substring (contigu
    11·2 answers
  • Which wireless specification can connect to a school's WLAN and connect to multimedia display projectors wirelessly?
    7·1 answer
  • Write a sub-program to display the acceleration of car. The program should ask initial velocity, final velocity, and time taken
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!