Computer Science, asked by kuldip24, 1 year ago

Write a c program to find a biggest two number​

Answers

Answered by Anonymous
0

Answer:

* C program to read elements into an array and find the.

* largest two elements in a given array.

int main (void)

int array[10], n = 0, i = 0, largest1 = 0, largest2 = 0, temp = 0;

printf ("Enter the size of the array\n");

scanf ("%d", &n);

printf ("Enter the elements\n")

Explanation:

Answered by Soñador
1

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int a, b;

cout<<"\nEnter first number";

cin>>a;

cout<<"\nEnter second number";

cin>>b;

cout<<"\n Biggest number=";

if(a>b)

{

cout<<a;

}

else

{

cout<<b;

}

getch();

}

Similar questions