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
You have a small network at home that is connected to the internet. On your home network, you have a server with the IP address
oksian1 [2.3K]

Answer:

Answer C

Explanation:

Static NAT creates a fixed translation of private addresses to public addresses. The main difference between dynamic NAT and static NAT is that static NAT allows a remote host to initiate a connection to a translated host if an access list exists that allows it, while dynamic NAT does not.

5 0
3 years ago
In addition to their full versions, some commercial software is available as a ____ or trial version.
Dimas [21]
Free version also know as the lite version that has less feature and but still allows the user to use the the core functionality
3 0
3 years ago
Where can you find the Language and Advanced features in Outlook?
igor_vitrenko [27]

Answer:

File tab, Options link.

Explanation:

Microsoft Outlook is an e-mail and a personal information manager (PIM) application software that was designed and developed by Microsoft Inc., to avail end users the ability to send and receive electronic messages on their computers.

An e-mail is an acronym for electronic mail and it is a software application or program designed to let users send texts and multimedia messages over the internet.

You can find the Language and Advanced features in Outlook by navigating to the File tab and selecting or clicking on the Options link.

4 0
3 years ago
Write the definition of a function powerTo which recieves two parameters, a double and an integer. If the second parameter is po
FrozenT [24]

Answer:

Following is the definition of the required function:

def powerTo( double first, int second);

if second > 0;

double result = pow(first,second);

return result;

else

return 0;

Explanation:

The explanation for above code is as follows:

  • A function named powerTo is defined, having two arguments with data type double and integer respectively.
  • A if condition is applied that checks the second parameter.
  • If the the condition: second > 0 gets true, a value is returned which is equal to first parameter raised to the second.
  • If the condition is if bracket gets false, 0 is returned as a result.

i hope it will help you!

5 0
4 years ago
Research online and identify two online plagiarism checker tools. Choose such tools that you can use for writing your schoolwork
LenaWriter [7]

This is an essay question, not fit for Brainly - please remove. There is a plagiarism checker by both Grammarly and Quetext, use those to help find your answer.

4 0
4 years ago
Other questions:
  • video-sharing sotes such as youtube and vimeo provide a place to post short videos called clips true or false?
    5·1 answer
  • Which person would be the best fit for a career in the information technology field?
    14·1 answer
  • Determine if x(t) is periodic and determine the fundamental period.
    15·1 answer
  • Design by contract considers the software system to be a setof:
    10·1 answer
  • In the given switch statement, what will be displayed if the value of var is 3? switch(var) { case 1: System.out.println("Apple"
    12·1 answer
  • You have a screen and a pen, which is an instance of the Turtle class.
    13·2 answers
  • Which of these is an example of collective voice?
    8·2 answers
  • Which memory can be removed from motherboard? RAM OR ROM?​
    7·1 answer
  • The sequence of instructions performed to execute one program instruction
    12·1 answer
  • You find information that you know to be classified on the internet. What should you do.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!