how to find out the maximum number out of the three inputs.
Answer Posted / hsandeep007
Hi Angads,
here is the code that need to implement.
I used java..
class largeNum{
public static void main(String args[])
{
int i,j,k;
i = Inter.parseInt(args[0]);
j = Inter.parseInt(args[1]);
k = Inter.parseInt(args[2]);
if (i>j && i>k)
{
system.out.print("i is max" + i);
}
else if(j>i && j>k)
{
system.out.print("j is max" + j);
}
else if(k>i && k>j)
{
system.out.print("k is max" + k);
}
}
}
| Is This Answer Correct ? | 32 Yes | 13 No |
Post New Answer View All Answers
i don't know about working of nested for loop can any one help me
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file
Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.
How to Split Strings with Regex in Managed C++ Applications?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.
Code for Easily Using Hash Table?
How to swap two ASCII numbers?
Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.
write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n
We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character