Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

to take two numbers of int data type, two numbers of float data type as input and output their sum: Declare variables: two of type

to take two numbers of int data type, two numbers of float data type as input and output their sum:
Declare variables: two of type int and two of type float.
Read lines of input from stdin (according to the sequence given in the 'Input Format' section below) and initialize your variables.
Use the and operator to perform the following operations:
Print the sum and difference of two int variable on a new line.
Print the sum and difference of two float variable rounded to one decimal place on a new line.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions