This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31a2fa0
commit 57adeae
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <iostream> | ||
|
||
using namespace std; | ||
|
||
int main() { | ||
int a, b, x; | ||
cout << "Inserisci a, b, x: "; | ||
cin >> a >> b >> x; | ||
cout << "a<=x<=b? " << ((a<=x) && (x<=b)) << endl; | ||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
using namespace std; | ||
|
||
int main() { | ||
bool a = true; | ||
cout << "Valore vero: " << a << endl; | ||
a = false; | ||
cout << "Valore falso: " << a << endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <iostream> | ||
using namespace std; | ||
|
||
int main() { | ||
int a, b, c; | ||
cout << "Inserisci valori di a, b e c: "; | ||
cin >> a >> b >> c; | ||
cout<< "a<b oppure b<c " | ||
<< (a<b || b<c) << endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
using namespace std; | ||
|
||
int main() { | ||
int a, b; | ||
cout << "Inserisci valori di a e di b: "; | ||
cin >> a >> b; | ||
cout << "Valore di " << a << "<" << b << ": " << (a<b) << endl; | ||
return 0; | ||
} |