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
slamgirl [31]
3 years ago
7

In C coding, mad libs are activities that have a person provide various words, which are then used to complete a short story in

unexpected (and hopefully funny) ways.
Write a program that takes a string and an integer as input, and outputs a sentence using the input values as shown in the example below. The program repeats until the input string is quit and disregards the integer input that follows. Assume the input string does not contain spaces

Ex: If the input is:

apples 5
shoes 2
quit 0
the output is:

Eating 5 apples a day keeps you happy and healthy.
Eating 2 shoes a day keeps you happy and healthy.

#include
#include

int main(void) {
char userString[50];
int userNum;

/* Type your code here. */

return 0;
}
Computers and Technology
1 answer:
OlgaM077 [116]3 years ago
8 0
Umm You should have put this in writing
You might be interested in
What are the pros and cons of using the Internet for researching career information?
VikaD [51]

Answer:

pros: a lot of info

cons: a lot of it can be fake!

Explanation:

4 0
3 years ago
Read 2 more answers
Which presidential race has been called “the dirtiest in American history”
sdas [7]
The election of 1828, <span>President John Quincy Adams, and Andrew Jackson,</span>
3 0
4 years ago
What is a protocol and what are the types of protocol​
wlad13 [49]
A protocol is a set of rules that governs the communications between computers on a network.

1. HTTP or HTTPs. This stands for Hypertext Transfer Protocol or Hypertext Transfer Protocol (secure).

2. FTP (File Transfer Protocol)

3. Email Protocols (POP3, IMAP, SMTP)

4. TCP(Transmission Control Protocol) and UDP(User Datagram Protocol)

Hoped that helped
3 0
4 years ago
Read 2 more answers
A ____ software helps you create and display worksheets containing data
kondor19780726 [428]

the answer would be spreadsheet

8 0
3 years ago
What is the value of the variable named result after the following code executes?
Makovka662 [10]

Answer:

The value of result is 20

Explanation:

Given

The above code segment

Required

The value of result

In the first line, we have:

X = 5; Y = 3; Z = 2

In the second, we have:

result = (X + Y)/Z * X

This implies that:

result = (5 + 3)/2 * 5

result = 8/2 * 5

result = 4 * 5

result = 20

3 0
3 years ago
Other questions:
  • An “AI” (artificial intelligence) could be used in:
    10·1 answer
  • According to your course, two benefits of a cloud-based system are_ and_
    12·1 answer
  • What kind of device is a printer? output or input
    13·1 answer
  • 12. Which of the following is a complex formula?
    13·2 answers
  • You are using a tool on your computer to organize a variety of files in folders. what is the term for this kind of tool?
    14·2 answers
  • With iteration-control systems, each team member ________. is given an account with a set of permissions is given their own priv
    6·1 answer
  • Which of the following regarding the Ames test is true? a. It is used to identify newly formed auxotrophic mutants. b. It is use
    14·1 answer
  • Use the drop-down menus to complete each sentence about the layers of the atmosphere.
    14·2 answers
  • Write a method drivingCost() with input parameters drivenMiles, milesPerGallon, and dollarsPerGallon, that returns the dollar co
    12·1 answer
  • What are the pros and cons of stone, wood, brick, concrete, steel, and glass for architecture building materials?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!