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
How can i get google assistant on my lava iris 820 smartphone easily???? ​
Free_Kalibri [48]

Google assistant on my lava iris 820 smartphone in the following way.

Explanation:

Google Assistant on your smartphone, here’s a complete ready to use guide

How to download and install Google Assistant

  • Most of the Android smartphones today come with Google Assistant pre installed and if it is not there.You can download it from Google Play Store.Apple iphone/ipad user installed it fro the App store.

How to set up google assistant .

  • Turn the Google Assistant on or off
  • On your Android phone or tablet, touch and hold the Home button or say "OK Google" or "Hey Google."
  • In the bottom right, tap .
  • In the top right, tap your Profile picture or initial Settings. ...
  • Under "Assistant devices," select your phone or tablet.
  • Turn Google Assistant on or off.

Link your voice

To use Voice Match, you must link a Google Account to the Google Assistant device. If you have multiple Google Accounts, you can choose which account you want to use.

Open the Google Home app Google Home.

At the bottom, tap Home Home and then Settings Settings.

Under “Google Assistant services,” tap More settings.

Tap Assistant and then Voice Match and then Add devices.

Follow the steps.

When you link your voice and use the Google Assistant in US English, the Google Assistant will automatically acknowledge when you ask it for something politely.

5 0
3 years ago
Deciding whether to explode a process further or determine that it is a functional primitive is a matter of experience, judgment
pickupchik [31]

Answer:

The answer is "True".

Explanation:

The conceptual, abstract design is also known as a logical design. This design doesn't use to discuss in matter of the actual execution. It only has to identify the kinds of information.  

  • In the logical development process, it involves inserting information into a number, which includes the organizations and features of rational networks.
  • It is used to organize the entities, for example, tables for a relation database, in a given market environment into the database systems, that's why the given statement is true.
3 0
3 years ago
Technologies designed to replace operating systems and services when they fail are called what?
Pie

Answer:

Bare metal recovery.

Explanation:

Technologies designed to replace operating systems and services when they fail are called bare metal recovery.

Basically, it is a software application or program which is primarily designed to enable users to reboot the affected system and services that have failed, usually from a removable media, CD-Rom using an image file of the operating system backup.

4 0
4 years ago
Robin ensures that she is always available if anyone in the team needs her. Which quality is shown by robin?
Inessa05 [86]
Helpful, resourceful, friendly, welcoming.
8 0
3 years ago
Read 2 more answers
Write a program to output a big A like the one below
Gelneren [198K]

hope this helps, i'm a beginner so this might not be the most concise method

3 0
3 years ago
Other questions:
  • Which of the following would an interactive media proffessional must likely need
    9·1 answer
  • Consider the following network: proxy-cache On average there are 35 objects downloaded per second, and the average object size i
    14·1 answer
  • Press the ____ key(s) to erase one character to the left of the insertion point.
    10·2 answers
  • Reasons for the growth of decision-making systems include:
    13·1 answer
  • Which of the following controls will provide an area in the form for the user to enter a name? a. button b. label c. text box d.
    8·1 answer
  • What are the two ways that assets are
    5·1 answer
  • How do you freeze the total cell so that it doesn't change when copied?
    6·1 answer
  • Tier 1 networks form the internet ____.​
    15·1 answer
  • Which of these are characteristics of a Python data type? Check all that apply.
    11·1 answer
  • In windows 10, where would you save the template so it is available in the available templates list in backstage view?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!