How to write a program to find the series of 2,4,8,16,
Answers
Answered by
0
#include <iostream>
using namespace std;
int main(){
for(int i=2; ;i+=2){
cout << i << "," <<endl;
}
return 0;
}
using namespace std;
int main(){
for(int i=2; ;i+=2){
cout << i << "," <<endl;
}
return 0;
}
Similar questions