unsigned u = 10, u2 = 42;
cout<<u2 - u<<endl;
cout<<u - u2<<endl;
int i = 10, i2 = 42;
cout<<i2 - i<<endl;
cout<<i - i2<<endl;
cout<<i - u<<endl;
cout<<u - i<<endl;
?
/*************************************************************************
> File Name: ex2.3.cpp
> Author:
> Mail:
> Created Time: Thu 18 Jan 2024 03:33:02 PM CST
************************************************************************/
#include<iostream>
using namespace std;
int main(){
unsigned u = 10, u2 = 42;
cout<<u2 - u<<endl;
cout<<u - u2<<endl;
int i = 10, i2 = 42;
cout<<i2 - i<<endl;
cout<<i - i2<<endl;
cout<<i - u<<endl;
cout<<u - i<<endl;
return 0;
}