Jump to content

Does Anyone Know C++ Programming?


Recommended Posts

Posted

Need some help on my homework willing to pay for some quick help providing some screenshots of the questions if anyone knows C++ programming and can type up the code I would need to run this program I believe its pretty basic.

0a36834b349b0cac1c86f4fdb434b391.png

af54a67f4f1589baaac34f0cc72ff731.png

a011d7446ddb7efafc85f03e6c8293c9.png

 

1)

 after every loop count 1 to a variable

initialize  int count;

 

after a number is entered

counter++;

 

get the total can be found the same way

 

2)

this is C but is similar to what you are looking for.

#include <stdio.h>  
   
int main() {  
    int counter; 
    printf("Odd numbers between 1 to 100\n");  
   
    /* 
     * Initialize counter with first odd number 1, and increment 
     * it by 2 in every iteration. 
     */
    counter = 1;
    while (counter <= 100) {  
        printf("%d ", counter);
        /* Add 2 to current odd number 
          to get next odd number */
        counter = counter + 2;  
    }  
   
    return 0;  
} 
Posted

 

1)

 after every loop count 1 to a variable

initialize  int count;

 

after a number is entered

counter++;

 

get the total can be found the same way

 

2)

this is C but is similar to what you are looking for.

#include <stdio.h>  
   
int main() {  
    int counter; 
    printf("Odd numbers between 1 to 100\n");  
   
    /* 
     * Initialize counter with first odd number 1, and increment 
     * it by 2 in every iteration. 
     */
    counter = 1;
    while (counter <= 100) {  
        printf("%d ", counter);
        /* Add 2 to current odd number 
          to get next odd number */
        counter = counter + 2;  
    }  
   
    return 0;  
} 

cool thanks that helps a bit

Mate, do your own fuckin' homework. Ask for help if you need it, but don't just ask someone else to do it for you. If you can't do something this simple and you don't learn it now, you are doomed in 2 months when you take your final.

the beautiful thing about a forum is you can ignore topics that are going to trigger you. I suggest in the future you ignore forum topics that will cause you to get triggered I worry about your mental health :)

  • Like 2
Posted

cool thanks that helps a bit

the beautiful thing about a forum is you can ignore topics that are going to trigger you. I suggest in the future you ignore forum topics that will cause you to get triggered I worry about your mental health smile.png

 

If you are okay with failing a course which appears to be an introduction to C/C++ from a community college, I will complete assignment for 10m (code + questions). Let me know.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...