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
Marat540 [252]
3 years ago
11

write a C program that declares an integer variable called "favorite_number". The program should then prompt the user to enter t

heir favorite number, and use scanf to read the user's input into favorite_number. Finally, the program should print a message that includes the user's input.
Computers and Technology
1 answer:
Arturiano [62]3 years ago
4 0

Answer:

// here is code in C.

// headers

#include <stdio.h>

// main function

int main(void) {

// variable declaration

int favorite_number;

 // ask user to enter favorite number

printf("enter your favorite number : ");

 // read the number

scanf("%d",&favorite_number);

 // print the message

printf("your favorite number is: %d",favorite_number);

return 0;

}

Explanation:

Declare a variable "favorite_number" of integer type.Ask user to enter favorite number and assign it to favorite_number.Then print the message which include the favorite number.

Output:

enter your favorite number : 77

your favorite number is: 77

You might be interested in
Brain of the computer system is called​
bagirrra123 [75]

Answer:

central processing unit in short form CPU :)

5 0
3 years ago
Read 2 more answers
Me podrian ayudar con esta pregunta...
tamaranim1 [39]
The answer is B , Hope this helps , I don’t speak Spanish but a little bit I understand , I’m sure that’s the correct answer answer
8 0
3 years ago
Read 2 more answers
Calvin works as a graphic designer for an advertising company. He has to submit a large number of prints quickly because the dea
choli [55]

Answer:

The correct answer would be, Laser Printers.

Explanation:

There are a lot of printers that are used to print out a document, or file, or image, or anything you want on a paper. Printers are called the output device of the computer system as it is used to get the output from the computer.

The most important types of printers are Laser Printers, Inkjet Printers, Dot Matrix Printers, etc.

Laser printers are considered to be the fastest printers among all. These printers also give a high quality print out in just a blink of an eye. So these printers are used to print documents which are too lengthy and require a quick print out. So Laser printers will help Calvin in meeting his deadline.

6 0
3 years ago
Software that interprets commands from the keyboard and mouse is also known as the
Stells [14]
A) operating system
It is going to let you "operate" it using the mouse and keyboard
4 0
3 years ago
Read 2 more answers
The opposite of merging cells is splitting a merged cell
vodomira [7]
True , hope this helps!!
4 0
3 years ago
Other questions:
  • Write a shell script to count down from two hours to zero seconds using the hour, minute, second display format utilizing the sh
    5·1 answer
  • when seeking information on the on the internet about a variety of subjects the most useful place to look would be?
    13·1 answer
  • A trench is a narrow excavation in which the depth is greater than the width and the width does not exceed 15 feet. A. False B.
    13·2 answers
  • After the following code is executed what will be displayed on the screen? bool correntEmployee = true; double empSalary = 45000
    7·1 answer
  • Written and artistic expressions are protected by
    8·1 answer
  • Can you get financial aid with average grades
    15·1 answer
  • If you wish to sign out of your Microsoft account, tap or click ____ on the ribbon to open the Backstage view and then tap or cl
    8·1 answer
  • Which of the following statements is/are correct? a. At the network layer, entitlement can map identity and/or attributes to fun
    8·1 answer
  • What profession do you prefer to have in the future? In what way could you make an impact on society using the Internet?
    7·1 answer
  • Why are salaried employees often excluded from overtime pay
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!