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

Commit

Permalink
add excercise
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-cat-tty committed Sep 28, 2021
1 parent 1bb9239 commit 8109cac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions esercitazioni/5_0_se_neg_1_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 << (a/abs(a)+1)/2 << endl;
return 0;
}
File renamed without changes.
Binary file modified esercitazioni/a.out
Binary file not shown.

0 comments on commit 8109cac

Please sign in to comment.