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
Vera_Pavlovna [14]
3 years ago
7

Write a program named as reverse.c that reads a message, then prints the reversal of the message. The output of the program shou

ld look like t
Computers and Technology
1 answer:
AfilCa [17]3 years ago
7 0

Answer:

Written in C:

#include <stdio.h>

#include <strings.h>

int main(){

   char userinput[100];

   printf("Enter a message: ");

   scanf("%s",&userinput);

   int lent = strlen(userinput);

   for (int i=lent-1; i>=0; i--)

     printf("%c",userinput[i]);

   return 0;    

}

Explanation:

This line declares a string variable

   char userinput[100];

This line prompts user for input

   printf("Enter a message: ");

This line gets user input

   scanf("%s",&userinput);

This line calculates the length of user input

   int lent = strlen(userinput);

This iterates through the characters of user input

   for (int i=lent-1; i>=0; i--)

This prints the characters in reverse

     printf("%c",userinput[i]);

You might be interested in
In the Charges section of the Transaction Entry dialog box the Total box is the result of multiplying the number in the ________
Kitty [74]
In the charges section of the Transaction Entry dialog box, the Total box is the result of multiplying the number in Quantity box or the terminology used for quantity box by the number in the amount box. This method is the simple method used in the tables.
8 0
3 years ago
Maya is a senior in high school and would like to pursue a career in web design. She needs more information about what skills an
Olenka [21]

Answer:

Career resource website.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

In this scenario, Maya is a senior in high school and would like to pursue a career in web design. She needs more information about what skills and level of education are needed.

Hence, the type of resource which would be most helpful to Maya is a career resource website.

A career resource website can be defined as an online platform that offer a very clear, detailed and an elaborate approach to providing informative and helpful article, tips and advice on various career options with their specific requirements to both graduates and undergraduate students.

6 0
2 years ago
How many queues would it take to use radix sort to sort names stored as all lowercase?
gregori [183]

Answer:

27 Queues.

Explanation:

Radix sort is an unique sorting algorithm which does not uses comparison.It does so by creating and distributing the elements into a container according to their radix.

In above mentioned question we'll be needing 26 queue for the letters and one queue to store the whole list during,after and before sorting.

7 0
3 years ago
What is the usage of "yield" in python?
Wewaii [24]

Answer:

Yield is a keyword in Python that is used to return from a function without destroying the states of its local variable and when the function is called, the execution starts from the last yield statement. Any function that contains a yield keyword is termed a generator. Hence, yield is what makes a generator.

Explanation:

8 0
3 years ago
Eter lacy (placy) has taken an extended leave from the company for personal reasons. however, he was working on a critical proje
liraira [26]

The Linux commands to be used in moving files include the following:

  • mv/home/placy/confid_wh/home/bcassini
  • mv/home/placy/projplan_wh/home/bcassini

<h3>What is a Linux command?</h3>

A Linux command can be defined as a software program (utility) that is designed and developed to run on the command line, so as to enable an end user perform both basic and advanced tasks by entering a line of text.

In this scenario, the Linux commands to be used in performing various tasks include the following:

  • Switch user (su), and then enter the password (1worm4b8).
  • Move (mv)/home/placy/confid_wh/home/bcassini
  • Move (mv)/home/placy/projplan_wh/home/bcassini
  • Use ls-l/home/bcassini to verify the new location files.

<u>Note:</u> You've to log in as the root user (placy) before you can move his files.

Read more on Linux commands here: brainly.com/question/25480553

#SPJ1

3 0
2 years ago
Other questions:
  • Information gathered from observing a plant grow 3 cm over a two-week period results in _______.a. inferences. b. variables. c.
    11·1 answer
  • 1. What are the advantages and disadvantages of the digital darkroom as compared to a regular
    9·1 answer
  • What properties make it suitable to be used for musical instruments?
    8·1 answer
  • Which options are available in the Conditional Formatting dialog box? Check all that apply.
    15·2 answers
  • When USB flash drives started becoming popular, customers stopped purchasing CDs. As a result, USB flash drives almost completel
    5·1 answer
  • In many supermarkets customers can pay for their shopping using credit cards. (a) Name two items of information stored on the ma
    8·1 answer
  • Primary purpose of ms Excel​
    10·1 answer
  • Ok i need help my xdox one is making speaking noises even when its turned off what can i do?
    10·1 answer
  • Which of the following items is an example of a common device for digital distribution?
    10·1 answer
  • One of 34 possible _________________ can be assigned to each axis of classification in the seven-character code.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!