answersLogoWhite

0


Best Answer

#include<iostream.h>

main()

{

int C,D,E;

cout<<"Number at location C=";

cin>>C;

cout<<"Number at location D=";

cin>>D;

E=C;

C=D;

D=E;

cout<<"New Number At Location C="<<C<<endl;

cout<<"New Number At Location D="<<D<<endl;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Two numbers are input through the keyboard into two locations C and D write a program in c to interchange the contents of C and D?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

How do you interchange numbers?

by changing signs


Only numbers 5 and 6 work out of all numbers on keyboard?

Buy new keyboard.


Where is the keyboard menu?

Part of keyboard with letters and numbers etc


Numbers of keys in English keyboard?

in the English qwerty keyboard there are about 100-125.


How do you type numbers?

there on the top of the keyboard


How do you make a copyright symbol on a qwerty keyboard?

Alt 0169 (numbers on the numeric keyboard)


How many locations are vin numbers on semi trucks -?

2 locations


How do you type a cubed sign?

turn on num lock. you need to have a full keyboard for this. hold the alt key and press 0179. release the alt key. the numbers at the top of the keyboard do not work for these special numbers. you need the numbers at the right of the regular keyboard for this to work. :D


What is the uses of the keyboard?

a keyboard is an input device use to encode letters and numbers or even symbols.


What are the Keys of a keyboard?

letters ,shift ,enter and numbers


How do you dance on binweevils?

press random numbers on your keyboard


How many numbers does a keyboard have?

It has 20 keys exactly.