Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main(){
- double szybkosc,downloadspeed,dane,danemb;
- unsigned int czas;
- cout<<"Analizator transferu by Narzew\n09.10.2013\n";
- cout<<"Podaj szybkosc lacza (Mbps): ";
- cin >> szybkosc;
- cout <<"Podaj czas (minuty): ";
- cin >> czas;
- // KB per second
- downloadspeed = (szybkosc*1024) / 8;
- dane = downloadspeed*60*czas;
- danemb = dane/1024;
- cout<<"Maksymalna szybkosc: "<<downloadspeed<<" KB\\s\n";
- cout<<"Dane: "<<dane<<" KB ("<<danemb<<" MB)\n";
- cout<<"Dziekuje za uzycie programu.\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement