answersLogoWhite

0

main()

{

in a,b,c,d;

printf("\n enter any four numbers");

scanf("%d%d%d%d",&a,&b,&c,&d);

if(a==ba==cb==cb==dc==d)

printf("\n numbers must be different");

else

{

if(a>b&&a>c&&a>b)

X=b>c&&b>d?b;c>d?c:d;

else if(b>c&&b>d)

x=a>c&&a>b?a:c<d?c:d;

else if(c>d)

x=a>b&&a>d?a:b>d?b:d;

else

x=a>b&&a>c?a:b>c?b:c;

printf("\n %d is second max vaalue",x);

{

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

What is the pseudo code for a program that finds the product of two numbers?

int x; //first number int y; //second number int z = x*y;


A c program for multiplication of two integers a and b?

/*PROGRAM TO ACCEPT TWO NUMBERS FROM THE USER AND PRINT THEIR MULTIPLICATION. */ #include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a, b, c; // Declaration of Variables. Variables 'a' &amp; 'b' to hold first &amp; second number. And 'c' to hold result. clrscr(); // To clear the output screen every time program is executed. printf("\n Enter the first number : "); scanf("%d", &amp;a); // To accept the first number. printf("\n Enter the second number : "); scanf("%d", &amp;b); // To accept the second number. c = a*b; // Logic to get the product of the entered two numbers. printf("\n Multiplication of %d &amp; %d = %d", a, b, c); // Displaying result. getch(); // To hold the output screen. }


Biggest of three numbers using ternary operator in java?

// largest = largest of a, b, c public class largest { public static void main(String args[]) { int a,b,c,largest; a=0; b=0; c=0; a=Integer.parseInt(args[0]); b=Integer.parseInt(args[1]); c=Integer.parseInt(args[2]); largest=a&gt;b?(a&gt;c?a:c):(b&gt;c?b:c); System.out.println("The largest no. of "+a+","+b+"and"+c+"is"+largest); } }


What is the flow chart for a program that finds two product numbers?

Since all decent programming languages have the multiplication operator, you simply multiply them. If you want to go into a bit more detail, it would be a bit like this: Ask user for number "a" Ask user for number "b" Calculate result = a * b Show result (End) Use the appropriate flow chart symbols for input, etc.


What is the algorithm to input 3 numbers and output them in ascending order?

To sort three numbers in ascending order, you can use a simple comparison-based algorithm. First, compare the first two numbers and swap them if the first is greater than the second. Then, compare the second number with the third and swap if necessary. Finally, check the first number against the second again to ensure they are in order. This process will yield the numbers in ascending order.

Related Questions

What will be the resultant if third digit of the lowest number is multiplied with the second digit of the highest number?

The answer will depend on what the highest and lowest numbers are!The answer will depend on what the highest and lowest numbers are!The answer will depend on what the highest and lowest numbers are!The answer will depend on what the highest and lowest numbers are!


What is the eighth highest composite number?

There is no highest number, highest prime number, or highest composite number. Therefore, there can't be a second-highest, third-highest, etc., of any of these types of numbers, either.


To find the second highest number from a set of numbers?

Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.


How do you getthe median in math?

Put the numbers in order from least to greatest. mark the lowest number, then the highest, then the second lowest , then second highest, then move inward crossing off the numbers, until you reach the center number.


How do you find the maximum in a set of numbers?

Take the first number in the set and compare it against the second. If the second is higher, take that number otherwise keep the first Repeat with all the numbers in the set, comparing the highest found so far with the next number in the set, taking the higher of the two until all the numbers in the set have been checked. The number with which you remain will be the highest.


What is the pseudo code for a program that finds the product of two numbers?

int x; //first number int y; //second number int z = x*y;


What was the destination of the second highest number captive's?

No


Is 83 the second highest prime number?

No.


What was the destination of the second highest number of captives?

No


What is the second biggest number ever?

Oh, dude, the second biggest number ever? That's easy—it's infinity minus one. Like, infinity is the biggest number, right? So, if you take away one from infinity, you get the second biggest number. But hey, who's really keeping track of all these numbers anyway, am I right?


The sum of two numbers is -42 the first number minus the second number is 52 Find the numbers?

= The sum of two numbers is -42 the first number minus the second number is 52 Find the numbers? =


How do you find the LCM of 2 numbers if one number is prime?

If the second number is a multiple of the prime number, than the LCM is the second number. If the second number is not a multiple of the prime number, then the two numbers are relatively prime, and the LCM is the product of the two numbers.