C program that prompts a user for two integers

Assignment Help Basic Computer Science
Reference no: EM131554368

Produce a C program that prompts a user for two integers (ints) and stores the two integers the user types into the console. Print the product, quotient, remainder, sum, and difference of the two integers to the console (see below for formatting). Use the first integer the user enters and print a statement to the console identifying the number as positive, negative, or 0. Only submit the .c file. The format should match the sample runs below.

Sample Run 1:

Enter two numbers: 5 4

5 * 4 = 20

5 / 4 = 1

5 % 4 = 1

5 + 4 = 9

5 - 4 = 1

Your first number is positive.

Sample Run 2:

Enter two numbers: 0 3

0 * 3 = 0

0 / 3 = 0

0 % 3 = 0

0 + 3 = 3

0 - 3 = -3

Your first number is zero.

Sample Run 3:

Enter two numbers: -3 8

-3 * 8 = -24

-3 / 8 = 0

-3 % 8 = -3

-3 + 8 = 5

-3 - 8 = -11

Your first number is negative.

Reference no: EM131554368

Questions Cloud

Discuss the advantages of using ssh : Discuss the advantages of using SSH instead of telnet for remote access to routers. Why is this important on a production network?
How laws or regulations affect your past or current job : Discuss the various types of alternative dispute resolution (ADR) and analyze which types of ADRs are regularly used in your workplace
Discuss the term system and data availability : Discuss the term system and data availability. How can system and data availability be assured on a network?
Discuss two situations where negotiation is appropriate : Explain the purpose of negotiations in the supply chain. Discuss 2 situations where negotiation is appropriate. Discuss at least 2 common negotiation situation.
C program that prompts a user for two integers : Produce a C program that prompts a user for two integers (ints) and stores the two integers the user types into the console.
Phases of the development process : What role do phases, of the development process, serve when working to manage custom software development? If possible, please feel free to provide examples.
Discuss the concept of wireless signal congestion : Discuss the concept of wireless signal congestion. As the airwaves become more congested with wireless devices, those signals interfere with one another.
Designing forms and reports : Design and draw two forms for a new software application or business web app that will collect data from its user.
Justify the choice of firm fixed price contract : BUSM4610: What happens when a situation of mistrust occurs between the customer and the contractor? Discuss the issue with respect to the project.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd