Qpel

ciklai 1 užd

Mar 19th, 2017
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #include <fstream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. const char duom[] = "duomenys.txt";
  10. const char rez[] = "rezultatai.txt";
  11.  
  12.  
  13. int main()
  14. {
  15. int sum = 1;
  16.  
  17. for(int i = 10; i <= 20; i++){
  18.     if(i % 2 == 0){
  19.     sum *= i;
  20.     cout << " * " << i;
  21.     }
  22. }
  23. cout << " = " << sum;
  24.  
  25.     return 0;
  26. }
Add Comment
Please, Sign In to add comment