Jump to content

Does Anyone Know C++ Programming?


Lucki

Recommended Posts

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;  
} 
Link to comment
Share on other sites

 

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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