1
shiny
3y

Can any one say the answer for this programme

Comments
  • 5
    I said it, but i don't think you heard it.
    We also don't do homework for you.
  • 3
    We wont give you the full answer. But if something is unclear about the assignment you can ask for clarification.

    Try making a solution first and then ask questions about it if it doesn't work. And remember that google is your friend. If you need to know how to get user input for example you can google "c++ user input" and you'll find the solution quickly :)
  • 3
    Umm, you're kidding right?

    This is a basic math problem, with minimal code required.
  • 4
    If you can't even do such a simple homework, a dev career is the wrong path for you. Try something else with your life.
  • 7
    Here you are:

    #include <stdio.h>
    int main() {
    int number;

    printf("Enter an integer: ");

    // displays output
    printf("I'm too lazy and stupid to check the code I copy-paste before I run it! ");

    return 0;
    }

    void game() {}
  • 0
    maybe you don't know enough math to find last and first digit, think about it, how numbers work, how can you use, %, +, -, *, / to get those digits.
  • 4
    This is devRant, where people don't do your homework but just rant about how you are too lazy to do it yourself.
    The well-known site for posting your homework for others to do it for you is StackOverflow:
    https://stackoverflow.com/
Add Comment