how to find out the maximum number out of the three inputs.
Answer Posted / dapumptu
If the inputs are a, b, and c,
max = a;
if (b > max) max = b;
if (c > max) max = c;
now max will contain the largest of the three.
| Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
i don't know about working of nested for loop can any one help me
Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).
write a program that reads a series of strings and prints only those strings begging with letter "b"
output for printf("printf");
how to diplay a external image of output on winxp by using c & c++,
Write a simple encryption program using string function which apply the substitution method.
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
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!!!)
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
write a program to perform generic sort in arrays?
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
develop a program to calculate and print body mass index for 200 employees
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
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used