C++ even numbers query
-
Write a C++ program that reads a positive integer n, and prints the first n even numbers. For example, one execution would look like this: Please enter a positive integer: 3 2 4 6 File Name evennumbers.cpp Score There are three tests each worth 2 points 1.#include 2.using namespace std; 3. 4.int main() 5. { 6. int n; 7. cout<<"Please enter a positive integer:"; 8. cin>>n; 9. 10. cout<<"These are all even numbers in between 1 to "<
-
Write a C++ program that reads a positive integer n, and prints the first n even numbers. For example, one execution would look like this: Please enter a positive integer: 3 2 4 6 File Name evennumbers.cpp Score There are three tests each worth 2 points 1.#include 2.using namespace std; 3. 4.int main() 5. { 6. int n; 7. cout<<"Please enter a positive integer:"; 8. cin>>n; 9. 10. cout<<"These are all even numbers in between 1 to "<
Well, looks like good and not complicated exercise. Did you solve it?
-
Well, looks like good and not complicated exercise. Did you solve it?
Hi it's okay when I run it,but the Autograrder says FAILED.What could be the problem? Should I submit the executable file only.If I rename the executable file as .cpp the Autograder results to errors of 2 .cpp files.What should I do please?
-
Hi it's okay when I run it,but the Autograrder says FAILED.What could be the problem? Should I submit the executable file only.If I rename the executable file as .cpp the Autograder results to errors of 2 .cpp files.What should I do please?
Sorry, I could not understand what you mean... :sigh: The code you've posted is not complete, it doesn't compile and it does nothing. :thumbsdown:
-
Write a C++ program that reads a positive integer n, and prints the first n even numbers. For example, one execution would look like this: Please enter a positive integer: 3 2 4 6 File Name evennumbers.cpp Score There are three tests each worth 2 points 1.#include 2.using namespace std; 3. 4.int main() 5. { 6. int n; 7. cout<<"Please enter a positive integer:"; 8. cin>>n; 9. 10. cout<<"These are all even numbers in between 1 to "<
So what's the problem, exactly?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Well, looks like good and not complicated exercise. Did you solve it?
Hi it's okay when I run it,but the Autograrder says FAILED.What could be the problem? Should I submit the executable file only.If I rename the executable file as .cpp the Autograder results to errors of 2 .cpp files.What should I do please?
-
Hi it's okay when I run it,but the Autograrder says FAILED.What could be the problem? Should I submit the executable file only.If I rename the executable file as .cpp the Autograder results to errors of 2 .cpp files.What should I do please?
Please, stop reposting the same! :mad: I've already read it (your post from 1-Mar-22 9:33) And answered!
-
Hi it's okay when I run it,but the Autograrder says FAILED.What could be the problem? Should I submit the executable file only.If I rename the executable file as .cpp the Autograder results to errors of 2 .cpp files.What should I do please?
-
So what's the problem, exactly?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Is there any doubt? He wants someone to do his work. :laugh:
The difficult we do right away... ...the impossible takes slightly longer.