F&A Diskussionen
C++
0 Stimmen
7 Antworten#include <iostream>
using namespace std;
int calc(int &a,int &b,int c=6)
{
a+=b;
b-=c;
c=a+b;
}
int main()
{
int calc(int,int,int);
int x=2,y=3,z=4; cout<<x<<endl<<y<<endl<<z<<endl;
calc(x,y,z); cout<<x<<endl<<y<<endl<<z<<endl;
calc(5,6,z); cout<<x<<endl<<y<<endl<<z<<endl;
return 0;
}
1 Stimme
5 AntwortenHeute heiß
Is this realistic enough?
1 Votes
Need friends
0 Votes
Python
1 Votes
How do you print inputs
0 Votes