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,...
Type: Posts; User: newbcore
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,...
Thanks very much, everyone. I'll work on your suggestions.
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...
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...
Thanks, Adak. I'll keep those comments in mind.
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...
#include <stdio.h>
main()
{
int year;
printf("Enter a year\n");
scanf("%d", &year);
getchar();
if (year%400==0)
printf("%d = leap year", year);
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!
why yes, yes i do . . . and to give me a cookie too.
in any event, thanks, and the problem is solved.
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...
Thanks for the help tabstop.
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...
Well yeah, mine too.
Thank you very much.
Wow, I actually sort of knew that. Astonishing.
Just curious. Mine hasn't happened yet.
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:
...
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!
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...
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,...
Also, why does this work?
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...
How do you do that?
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.
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;
...