Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <fstream>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. double a, b, c, s;
  8. const char FV[] ="pirmas.txt";
  9. ifstream fd (FV);
  10. fd>>a>>b>>c;
  11. fd.close();
  12. s =a+b+c;
  13. cout << s;
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement