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 0065aff commit 16b7da0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file added esercitazioni/.5_diff_tempo.cpp.swp
Binary file not shown.
14 changes: 14 additions & 0 deletions esercitazioni/5_diff_tempo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <iostream>
#include <cstdio>

using namespace std;

int main() {
int min1, sec1, min2, sec2;
cout << "Minuti e secondi primo tempo? ";
cin >> min1 >> sec1;
cout << "Minuti e secondi secondo tempo? ";
cin >> min2 >> sec2;
cout << "Differenza: " << abs(min1*60+sec1-(min2*60+sec2)) << endl;
}

Binary file modified esercitazioni/a.out
Binary file not shown.

0 comments on commit 16b7da0

Please sign in to comment.