Quote:
Originally Posted by Sayael
void main ()
{
int a,b;
system ("color 9e");
cout << "Geben Sie die erste Zahl ein" << endl;
cin >> a;
cout << "Geben Sie die zweite Zahl ein " << endl;
cin >> b;
cout << "Zahl 1 ist: " << b << endl;
cout << "Zahl 2 ist: " << a << endl;
getch();
}
Das ist ein Programm wo "a" mit "b" vertauscht wird, total easy aufgabe.
|
na, vertauscht wurden die nicht
Nur falschrum ausgegeben :>