My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Question #29504
write c++ program that selects and displays the first 20 integer numbers that are evenly divisible by 3.
Expert's answer
#include<iostream>
int main(){
int num = 0;
int i = 0;
while (num<20){
if (i%3==0){
std::cout<<i<<"\n";
num++;
}
i++;
}
getchar();
return 0;
}
Our fields of expertise
Programming
Math
Engineering
Economics
Physics
LATEST TUTORIALS
APPROVED BY CLIENTS
Thanks for the assistance,,, your service is great
#340795
on Jan 2024
Read all reviews >>