Computer Science, asked by manvi27, 1 year ago

write a program to find out the largest integer out of three

Answers

Answered by Anonymous
2
#include<iostream.h> #include<conio.h>
int largest(int,int,int);
main()
{ clrscr();
int value_1; int value_2; int value_3; int maximum; cout<<"\n Enter the value_1 = "; cin>>value_1; cout<<"\n Enter the value_2 = "; cin>>value_2; cout<<"\n Enter the value_3 = "; cin>>value_3; maximum=largest(value_1,value_2,value_3); cout<<"\n The largest integer is = "<<maximum<<endl; getch(); return 0; }
Similar questions