Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char** argv) {
- float a,b,c ;
- cout<<"podaj ilość kilometrów"<<endl;
- cin>>a;
- cout<<"podaj ilość zużytego paliwa"<<endl;
- cin>>b;
- c=b/a;
- cout<<"twoje średnie zużuecie to "<<c<<" l/km"<<endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement