//1) WHILE
#include
using namespace std;
int main() {
int n = 30;
int sum = 0;
while (n <= 70) {<br> if (n % 4 == 0) sum = sum + n;
n++;
}
cout << "Sum = " << sum << endl;<br> system("pause");
return 0;
}
//2) DO WHILE
#include
using namespace std;
int main() {
int n = 30;
int sum = 0;
do {
if (n % 4 == 0) sum = sum + n;
n++;
} while (n <= 70);<br> cout << "Sum = " << sum << endl;<br> system("pause");
return 0;
}