C++ swap
C++ Swap
#include <iostream> using namespace std; int main() { // your code goes here double A, B, C, D; A = 4736.383; B = 7490.924; C = 1; D = 1; C = C * A; D = D * B; A = A - A; B = B - B; A = D; B = C; cout << "A ist jetzt B: \n" << A ; cout << endl; cout << "B ist jetzt A: \n"<< B; return 0; }