#include <iostream>
using namespace std;
void zadanie3_1();
void zadanie3_10();
void zadanie3_13();
int main() {
zadanie3_1();
zadanie3_10();
zadanie3_13();
return 0;
}
void zadanie3_1()
{
for (int i = 0; i <= 10; i++)
cout << "y = " << 3 * i<<endl;
void zadanie3_10()
int suma = 0;
for (int i = 1; i <= 100; i++)
if(i % 2 == 0)
suma += i;
cout << suma<< endl;
void zadanie3_13()
if(i % 2 != 0)
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <iostream>
using namespace std;
void zadanie3_1();
void zadanie3_10();
void zadanie3_13();
int main() {
zadanie3_1();
zadanie3_10();
zadanie3_13();
return 0;
}
void zadanie3_1()
{
for (int i = 0; i <= 10; i++)
{
cout << "y = " << 3 * i<<endl;
}
}
void zadanie3_10()
{
int suma = 0;
for (int i = 1; i <= 100; i++)
{
if(i % 2 == 0)
{
suma += i;
}
}
cout << suma<< endl;
}
void zadanie3_13()
{
int suma = 0;
for (int i = 1; i <= 100; i++)
{
if(i % 2 != 0)
{
suma += i;
}
}
cout << suma<< endl;
}