please some body give me the full C code of water jug problem

nitin1 commented: >.< +0
Gonbe commented: Delete your account, sell your computer. -1

Recommended Answers

All 3 Replies

#include <stdio.h>

int main()
{
        printf("Fill the three up, and pour it into the five. Fill the three up aain, and pour it into the five until the five is full. You now have one unit of liquid in the three container. Empty out the five, put the one unit from the three container into the five, fill the three up again and pour it into the five container; the five container now contains four units.");
        return 0;
}
commented: hahahhaha..... awesome..... :p +3
commented: ROFLMAO! Great response Mos! +12

We don't do your homework for you, which is what (in not so many words) Moschops was saying. Make an effort. Post your code. And if it is reasonable, we might decide to help you - though you haven't got off to a good start here...

What's up with all the garbage questions lately..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.