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

Commit

Permalink
esercizio 2 parte 4 per casa
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-cat-tty committed Sep 27, 2021
1 parent 4af042c commit f776eda
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Binary file added esercitazioni/.5_input_divisione.cpp.swp
Binary file not shown.
16 changes: 16 additions & 0 deletions esercitazioni/4_input_divisione.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>
#include <cstdio>

using namespace std;

int main() {
int a, b, ris, resto;
cout << "Primo valore: ";
cin >> a;
cout << "Secondo valore: ";
cin >> b;
resto = a%b;
ris = (int)a/b;
cout << a << "/" << b << "=" << ris << " con resto " << resto << endl;
return 0;
}
Binary file modified esercitazioni/a.out
Binary file not shown.

0 comments on commit f776eda

Please sign in to comment.