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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of sizeof () in c?

555


Here is a neat trick for checking whether two strings are equal

562


Can one function call another?

624


What are the standard predefined macros?

629


What is the difference between malloc calloc and realloc in c?

643






write a program fibonacci series and palindrome program in c

630


Write a program which returns the first non repetitive character in the string?

597


What does sizeof function do?

610


Why n++ execute faster than n+1 ?

1840


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1981


Lists the benefits of c programming language?

592


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1257


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

2703


What is the difference between procedural and declarative language?

645


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

4835