Output of the given c++ code

Assignment Help C/C++ Programming
Reference no: EM13698742

Question: What is the output of the given C++ code?

if (x < 20 && y > 20);

{          

    x = 2 * x;

y = y / 2;

cout << x << " " << y << x - y << endl;

}             

else

{

x = y / x;

cout << x << " " << y << " " << x * x + y * y << endl;

You need to find out the output of the given code.

 

Reference no: EM13698742

Questions Cloud

Find the area of the circle : What is the ratio of the areas of the inscribed circle to that of the unit square -
Matlab code to create the global stiffness matrix : Write a MATLAB code to create the global stiffness matrix for a problem with 6 unconstrained degrees of freedom for any linear elastic two dimensional trusses.
Determine a regular language : Exhibit an algorithm for determining whether or not a regular language L contains any string w such that wr ? L.
Draw the structure of the organic compound : Question- Amino acids can be synthesized by reductive amination. Draw the structure of the organic compound that you would use to synthesize isoleucine. Draw the molecule with ionizable groups in their unchanged form. Do not consider sterochemistr..
Output of the given c++ code : What is the output of the given C++ code - You need to find out the output of the given code.
Calculate the osmotic pressure of each starting solution : Question- One-hundred milliliters of 1.75 mM NaCl is mixed with 80.0mL of 3.20 mM MgCl2 at 20 degrees Celsius. Calculate the osmotic pressure of each starting solution and that of the mixture, assuming that the volumes are additive and that both s..
What is the size of the key in the des : What is the size of the key in the DES(DATA ENCRYPTION STANDARD) algorithm?
What is the equilibrium constant at 298k for the reaction : Question- 3C(s) + 3H2(g) -----> C3H6(g) deltaH= 20.41 kJ; deltaS= -131.6J/K at 298K, What is the equilibrium constant at 298K for this reaction
Which logic equations should be valid : Which one of the subsequent four logic equations would be valid for the o6 output of a decoder with address lines a0, a1, a2 and outputs o0, o1, o2, o3, o4, o5, o6, o7?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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