we have a 3litres jug and a 5 litres jug and no measures on
them. using these two jugs how can we measure 4 litres of water?
Answers were Sorted based on User's Feedback
Answer / money
we have 3 liter jug and 5 lit..
first 5 liter with full water.and drop water into 3 liter
jug. remain 2 liter water in 5 liter capcity jug.
step 2 : drop 3 liter water in another container.
3 liter jug is empty and after then 2 liter from 5
liter jug into 3 liter jug. now we have 2 liter water in 3
liter capicity jug and 5 liter jug is empty.
step 3: take water with full 5 liter jug. pour the one liter
into 3 liter jug which have already two liter .u will have 4
liter in 5 liter jug cacpity.
Is This Answer Correct ? | 25 Yes | 3 No |
Answer / gowthaman
take a 10 lits water by two times on the 5 lit jug and put on some intermediate,then u r having 3 lit jug so u cud pour the 6 LIT wATER FROM INTERMEDIATE by measuring it two times and now ur having 4 lit water
Is This Answer Correct ? | 0 Yes | 1 No |
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
Tell me what is the purpose of 'register' keyword in c language?
Explain spaghetti programming?
difference between c and c++?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Input is "Jack and jill went up a hill" To print output is 1-letter word(s)-1 2-letter words-1 3-letter words-1 4-letter words-4
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
What does struct node * mean?
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.
What is the difference between near, far and huge pointers?