0
Write a program Using do-whileloop to display number 2,4,6,8,10,12,14,16,18,20.
3 Respuestas
- 1
#include <iostream>
using namespace std;
int main()
{
int a(2);
do {
cout << a << endl;
a+=2;
} while(a <= 20);
return 0;
}
- 1
tnx bro
- 1
#include <iostream>
using namespace std;
int main() {
int a=0;
do{
a = a + 2;
cout << a << endl;
} while (a < 20);
return 0;
}