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
saw5 [17]
4 years ago
14

Write only in C, not C++.

Computers and Technology
1 answer:
yawa3891 [41]4 years ago
7 0

Answer:

#include <iostream>

using namespace std;

int main() {

  int k;

double d;

string s;

cin >> k >> d >> s;

cout << s << " " << d << " " << k << "\n" << k << " " << d << " " << s; }

                                                                   

Explanation:

k is int type variable that stores integer values.

d is double type variable that stores real number.

s is string type variable that stores word.

cin statement is used to take input from user. cin takes an integer, a real number and a word from user. The user first enters an integer value, then a real number and then a small word as input.

cout statement is used to display the output on the screen. cout displays the value of k, d and s which entered by user.

First the values of k, d and s are displayed in reverse order. This means the word is displayed first, then the real number and then the integer separated again by EXACTLY one space from each other. " " used to represent a single space.

Then next line \n is used to produce a new line.

So in the next line values of k, d and s are displayed in original order (the integer , the real, and the word), separated again by EXACTLY one space from each other.

The program along with the output is attached.

You might be interested in
Write a program that asks the user to enter a number of seconds and then printsthe same amount of time in days, hours, minutes,
MariettaO [177]

Answer:3363 seconds

Explanation:3363 is equivalent to 0days 1 hour, 1 min, and 7 sec

8 0
4 years ago
The function of dialog box is to present
erastovalidia [21]

Answer:

Hey Dude.....

Explanation:

This is ur answer.....

<h3>D. additional command options...</h3>

Hope it helps!

Brainliest pls!

Follow me! :)

5 0
3 years ago
What level does Drantini evolve? I'm currently grinding on my TI 84 calculator.
ad-work [718]

Answer:

Dratini first evolves into dragonair at level 30, which then later on evolves into dragonite at level 55.

4 0
3 years ago
URGENT!! What is the most suitable use for bitmap images?
ELEN [110]

B. Photographs

Logos, line drawings, and animations are always better as vector images, which basically means the image has an infinite resolution.

7 0
3 years ago
Read 2 more answers
Watch a broadcast news show on television (ABC, CBS, or NBC) or on their Internet outlets. Do you think that what you see consti
Feliz [49]

Answer:

Biased

Explanation:After watching any of these broadcasters, ABC, CBS or NBC it is clear that they, as powerful mass media, sometimes take sides when speaking about some particular subjects, especially regarding political or economical. This is of course unethical because one the key elements at the moment of delivering information to the public it has to be unbiased, transparent and with the sole purpose of informing and analyzing.

When the speech engages with persuasion it clearly is taking sides because is looking for creating in the public not the objective analysis of information but the subjective point of view based on the intentional and unethical persuasion exercise executed on the part of the mass media.  Regarding the question of being able to be persuasive without being informative the answer is yes.

Most media, politicians, companies just to mention a few are highly persuasive with biased information, marketing resources, and different strategies that people very easily “buy” and “believe” because most of the time such “persuasive information” is so well delivered that people do not second-guess it or even try to structure an educated guess of the information recived.

7 0
3 years ago
Other questions:
  • Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the g
    12·2 answers
  • Hello... does anyone know why Brainly notifications aren’t working???
    11·2 answers
  • With the help of what memory a computer can read as well as write or modify data
    14·2 answers
  • You use this method to determine the number of items stored in an arraylist object.
    12·1 answer
  • Explaine possibility of malware bundled into downloads
    13·1 answer
  • What is predictive dialing?
    12·1 answer
  • Design a Ship class with the following members:
    13·1 answer
  • 1.Input device which transfers information and images from physical documents to computer files.
    14·1 answer
  • What is the Slide Sorter View used for?
    12·2 answers
  • Bob gets an e-mail addressed from his bank, asking for his user ID and password. He then notices that the e-mail has poor gramma
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!