Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
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; }