Write a c program to find a biggest two number
Answers
Answered by
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
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
Science,
6 months ago
India Languages,
6 months ago
Math,
1 year ago
Physics,
1 year ago
Computer Science,
1 year ago