Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n,thn,bln,hari;
- cout << "Input berapa hari projek tersebut dikerjakan : ";
- cin >> n;
- thn = (n/365);
- bln = (n-(thn*365))/30;
- hari = (n-(thn*365))-(bln*30);
- cout << endl << "Projek Dikerjakan Selama = " << thn << " tahun "
- << bln << " bulan " << hari << " hari";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement