Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <fstream>
- #include <string>
- using namespace std;
- const char duom[] = "duomenys.txt";
- const char rez[] = "rezultatai.txt";
- int main()
- {
- int sum = 1;
- for(int i = 10; i <= 20; i++){
- if(i % 2 == 0){
- sum *= i;
- cout << " * " << i;
- }
- }
- cout << " = " << sum;
- return 0;
- }
Add Comment
Please, Sign In to add comment