Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //POLE PROSTOKĄTA O WYMIARACH Z PLIKU
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- float a,b;
- ifstream wejscie("prostokat.txt");
- wejscie>>a>>b;
- wejscie.close();
- cout<<"a= "<<a<<endl;
- cout<<"b= "<<b<<endl;
- cout<<"pole prostokata wynosi: "<<a*b;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement