|
|
|
|
|
|
|
Вернуться
| 1 Кусаинов Жанболат, 24 марта 2014 г. 19:29:28 | |
какая это задача
|
|
|
| 2 Андрей и Костя, 21 марта 2014 г. 20:27:00 | |
попробуй так #include <fstream> using namespace std; int main () { float a,b,c=0; ifstream cin("input.txt"); ofstream cout("output.txt"); cin>>b; for (a=1; a<=b; a++) { c=a+c; } cout<<c<<endl; return 0; }
|
|
|
| 3 Жанболот, 20 марта 2014 г. 21:01:18 | |
#include <iostream> #include <fstream> using namespace std; int main () { float a,b,c=0; ifstream("input.txt"); ofstream("output.txt"); cin>>b; for (a=1; a<=b; a++) { c=a+c; } cout<<c<<endl; return 0; }
|
|
|
Чтобы оставить сообщение необходимо зарегистрироваться и авторизоваться!
| | | |