answersLogoWhite

0

#include <iostream>

using namespace std;

int main()

{

int a, b;

cin >> a;

cin >> b;

a = a * b;

b = a / b;

a = a / b;

cout << a << " " << b;

char wait;

cin >> wait;

return 0;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


How do you write BASIC program to accept variables?

dim a input a


How do you write xy in c program?

Assuming that x and y are two variables, such as they might be in Algebra, and that the expression "xy" is meant to be the multiplication of x times y, you would write it as x * y This expression could be used with a third variable in an assignment statement, or as a condition in an if statement where it can be compared to another variable or a constant.


What variable precedes the other when thinking of independent and dependent variables?

The independent variable is named first. In the Cartesian plane, this means you write (X, Y).


Write a programme to exchange the content of 2 variables using another variable?

t=x; /* t is the other variable */x=y;y=t;


How can you write an inequality that is neither true nor false?

If you use a variable, or variables, with an equation, or with an inequality, it is neither true nor false until you replace the variables with specific values.


What are the feutures of a good c program?

c program is fast and efficient.And c programm can be write with vareity of type variables and operations.


What is the Algorithm for exchanging values of two variables?

There are three primary algorithms to exchange the values of two variables. Exchange with Temporary Variable temp = a; a = b; b = temp; Exchange Without Temporary Variable Using Exclusive Or a = a ^ b; b = b ^ a; a = a ^ b; Exchange Without Temporary Variable Using Arithmetic a = a + b; b = b - a; a = a - b;


What is the input of a variable called in qbasic?

Variables don't have inputs. A variable is a named memory location where a value may be read or written. You write a variable by assigning a value to it. The value may be obtained from user-input.


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


What is program style?

Program style refers to the way you write a program code. A good style is usually characterized by proper indentation, meaningful variable names, etc.


How do you write a program in Perl to swap two variables without using the third one?

Use list assignment i.e. for two variables $a, $b: ($a,$b) = ($b,$a)