Please me to check my program and tell me the solution.
Question
Attachment 15214Attachment 15215Attachment 15216Attachment 15217
Please me to check my program and tell me the solution.
Question
Attachment 15214Attachment 15215Attachment 15216Attachment 15217
Last edited by IAmLastPrime; 10-02-2017 at 03:59 AM.
So, it looks like your program compiled without even a warning. That's good. Have you tested it? How does it not work? I would have tried entering the sample input at the very least, but from what I see you should have discovered something wrong just from doing that.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Post your code here, using code tags. Tell us the input you're entering, the output you're getting, and the output you're expecting.
Also, you might want to look into the "no target in no no project" message seen in your screen shot.
You're not helping matters by editing your post with different attachments after people have replied.
Also your assignment attachment refers to lab3p1.c, where your IDE shows lab3p3.c.
And that little *lab3p3.c next to the filename means you've edited the file since you last compiled it.
Who knows what your problem is, or what your attempt is.
Sloppy work.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.