Calendar
« January 2025 » | Su | Mo | Tu | We | Th | Fr | Sa | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Statistics
Total online: 1 Guests: 1 Users: 0
|
Main » C++ programs
#include <iostream>
using namespace std;
int main() { int a,b; cin>>a>>b; a+=b; b=a-b; a-=b; cout<<endl<<a<<endl<<b; return 0; }
|
#include <iostream>
using namespace std;
int main() { int a,b; cin>>a>>b; a^=b; b=a^b; a^=b; cout<<endl<<a<<endl<<b<<endl; return 0; }
|
#include <iostream>
using namespace std;
int main() { int a,b,c,d; cout <<"enter a,b,c,d"<<endl; cin >>a>>b>>c>>d; cout <<(a>b?(a>c?(a>d?a:d):(c>d?c:d)):(b>c?(b>d?b:d):(c>d?c:d)));
return 0; }
| |
|