Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
add esercizio
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-cat-tty committed Sep 28, 2021
1 parent 8109cac commit 9e13e86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions esercitazioni/5_1_se_neg_0_se_pos.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <iostream>
#include <cstdio>

using namespace std;

int main() {
int a;
cout << "Inserisci numero intero: ";
cin >> a;
cout << abs((a/abs(a)-1)/2) << endl;
return 0;
}
Binary file modified esercitazioni/a.out
Binary file not shown.

0 comments on commit 9e13e86

Please sign in to comment.