Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include<iomanip>
- #include<fstream>
- using namespace std;
- int main()
- {
- float x, y, g, k;
- ifstream in_stream;
- in_stream.open("input.txt");
- ofstream out_stream;
- out_stream.open("output.txt");
- in_stream >> x;
- g = x;
- out_stream.setf(ios::fixed);
- out_stream.setf(ios::showpoint);
- out_stream.precision(2);
- while (!in_stream.eof()) {
- in_stream >> y;
- if (y != g) {
- k = y / g;
- out_stream << setw(9) << k << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement