#Python
x = 2
while x <= 9:
print(x,end=" ")
x += 2
#include<iostream>
using namespace std;
int main()
{
int i = 1;
while (i <= 9)
if (i % 2 == 0)
cout << i << " ";
}
i++;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#Python
x = 2
while x <= 9:
print(x,end=" ")
x += 2
#include<iostream>
using namespace std;
int main()
{
int i = 1;
while (i <= 9)
{
if (i % 2 == 0)
{
cout << i << " ";
}
i++;
}
}