Help me!

Правка ru3, от Zhanibekkk, 2018-11-28 12:09:44

I have a lot of files named with sample numbers 1, 2, 3 and so on. In this files there are two integers a and b. And I should print a+b. And output should be in files such as 1.a, 2.a, 3.a etc.

Please, help me or send me correct code. Code;

This code create answer for 1st file. But for others, outputs answer of 1st file too.

P.s. Sorry for my English.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru4 Русский Zhanibekkk 2018-11-28 12:20:09 3 Мелкая правка: 'ect code. [Code](ht' -> 'ect code. My [Code](ht'
en1 Английский Zhanibekkk 2018-11-28 12:16:09 410 Initial revision for English translation
ru3 Русский Zhanibekkk 2018-11-28 12:09:44 17
ru2 Русский Zhanibekkk 2018-11-28 12:03:01 30 Мелкая правка: ' file too. ' -> ' file too.\n\nP.s. Sorry for my English. '
ru1 Русский Zhanibekkk 2018-11-28 12:01:56 387 Первая редакция (опубликовано)