Search:

Type: Posts; User: newbcore

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,334

    A hint, but no answer please!

    Ok, this is probably a really easy problem, but I've been trying for 2.5 days to work on it, with no luck. Any hints would be helpful, but no answers, please.

    "Given threee points (x1, y1), (x2,...
  2. Replies
    7
    Views
    2,556

    Thanks very much, everyone. I'll work on your...

    Thanks very much, everyone. I'll work on your suggestions.
  3. Replies
    7
    Views
    2,556

    I'm sorry, I don't understand what you mean here....

    I'm sorry, I don't understand what you mean here. Could you try to explain it differently? I also don't know what you mean as far as explaining how it works, because I thought you could look at the...
  4. Replies
    7
    Views
    2,556

    Suggestions for how to improve upon this

    Okay, so here's the problem:

    If the ages of Ram, Shyam, and Ajay are input through the keyboard, write a program to determine the youngest of the three.

    Here's my answer:



    #include...
  5. Thanks, Adak. I'll keep those comments in mind.

    Thanks, Adak. I'll keep those comments in mind.
  6. Thanks for the help, y'all. Much appreciated! ...

    Thanks for the help, y'all. Much appreciated!



    Ok.


    I am certain you already know this, but I do feel compelled to mention it.

    It's obvious that I couldn't figure it out. It's also...
  7. why does this program say 1700 is a leap year?

    #include <stdio.h>
    main()
    {
    int year;
    printf("Enter a year\n");
    scanf("%d", &year);
    getchar();

    if (year%400==0)
    printf("%d = leap year", year);
  8. Replies
    7
    Views
    4,751

    I was kidding in response to the "And do you...

    I was kidding in response to the "And do you expect the compiler to reorder your code?" comment :). Remember, I'm wet behind the ears and just learning that there's an order I'm supposed to follow!
  9. Replies
    7
    Views
    4,751

    why yes, yes i do . . . and to give me a cookie...

    why yes, yes i do . . . and to give me a cookie too.

    in any event, thanks, and the problem is solved.
  10. Replies
    7
    Views
    4,751

    program for finding gross salary

    Greetings earthlings,

    Ok, so I'm trying to write this program in which the user enters in a person's basic salary, and the program calculates the gross salary. Gross salary is the basic salary...
  11. Thanks for the help tabstop.

    Thanks for the help tabstop.
  12. Ok, so here's another question I have. This is...

    Ok, so here's another question I have. This is the expression I'm working on.

    a=b=c=3+4

    Am I right about these statements?
    1. For the first =, the left operand is a, and the right is b or...
  13. Replies
    19
    Views
    2,589

    Well yeah, mine too.

    Well yeah, mine too.
  14. Thank you very much.

    Thank you very much.
  15. Wow, I actually sort of knew that. Astonishing.

    Wow, I actually sort of knew that. Astonishing.
  16. Replies
    19
    Views
    2,589

    What was your first C project?

    Just curious. Mine hasn't happened yet.
  17. Help with evaluating expressions and showing their hierarchy

    As the name suggests, I'm new and working my way through a C book for which I don't have an answer key, so I was wondering if any of you could look through my work and tell me if it's correct:
    ...
  18. Replies
    4
    Views
    1,842

    Ok, let me work on what you've given me, and then...

    Ok, let me work on what you've given me, and then I'll get back to you if I'm befuddled by anything else. Thanks again!
  19. Replies
    4
    Views
    1,842

    9. What is bitwise XOR? I know what an...

    9. What is bitwise XOR? I know what an exclusive or circuit is, but that's about it.
    10. Do you mean the part of my answer about parenthesis within parenthesis being wrong? I thought you...
  20. Replies
    4
    Views
    1,842

    Am I doing these correctly?

    Ok, so I have no programming experience and I started using "Let Us C" by Yashavant Kanetkar to teach myself C a few days ago. Unfortunately, I don't have the solutions to the exercises in the book,...
  21. Also, why does this work?

    Also, why does this work?
  22. Thanks everyone. I got it to work by doing what...

    Thanks everyone. I got it to work by doing what I've posted below. Is that part at the top correct (with the two #includes)? I did it because after I followed blurx's suggestion it highlighted the...
  23. How do you do that?

    How do you do that?
  24. Thanks. Is there is another function I can use...

    Thanks. Is there is another function I can use to return an int? Alternatively, if there's some better way to fix it, I'm appreciative of any suggestions.
  25. ultra-noob question from "let us c" by yashavant kanetkar

    Hi, I have no prior programming experience and am teaching myself C through this book. I am trying to get this program to work. Here it is:


    #include <math.h>
    main()
    {
    int a;
    ...
Results 1 to 25 of 25