#include <iostream>
using namespace std;
int main ()
{
int N, i = 0;
cin >> N;
while (i < N)
cout << i + 2 << " ";;
i += 2;
}
return 0;
Show life that you have a thousand reasons to smile
© Copyright 2024 DOKU.TIPS - All rights reserved.
#include <iostream>
using namespace std;
int main ()
{
int N, i = 0;
cin >> N;
while (i < N)
{
cout << i + 2 << " ";;
i += 2;
}
return 0;
}