mata podi deyak dana ganna one
kohomada user add karana numbers 10ka wadima value eka select wela enna hadanne?
help me
kohomada user add karana numbers 10ka wadima value eka select wela enna hadanne?
help me
int maxNo =0;
int enteredNo =0;
for(int i=0;i<10;i++){
cout<<"Enter No : ";
cin>>enteredNo;
if(maxNo < enteredNo){
maxNo=enteredNo; }
}
cout<<maxNo;

#include <iostream>
using namespace std;
int compare ( int a, int b , int c, int d, int e, int f, int g, int h, int i, int j)
{
if (a>=b)
{
if (a>=c)
{
return a;
}
else
{
return c;
}
}
else
{
if (b>=c)
{
return b;
}
else
{
return c;
}
}
}
int main()
{
int num1,num2,num3,num4,num5,num6,num7,num8,num9,num10;
int result;
cout<<"please enter three numbers and I will tell you the largest number you entered"<<endl;
cout<<endl;
cout<<"the first number? :"<<endl;
cin >>num1;
cout<<endl;
cout<<"the second number? :"<<endl;
cin >>num2;
cout<<endl;
cout<<"the thrid number? :"<<endl;
cin >>num3;
cout<<endl;
cout<<"the 4th number? :"<<endl;
cin >>num4;
cout<<endl;
cout<<"the 5th number? :"<<endl;
cin >>num5;
cout<<endl;
cout<<"the 6th number? :"<<endl;
cin >>num6;
cout<<endl;
cout<<"the 7th number? :"<<endl;
cin >>num7;
cout<<endl;
cout<<"the 8th number? :"<<endl;
cin >>num8;
cout<<endl;
cout<<"the 9th number? :"<<endl;
cin >>num9;
cout<<endl;
cout<<"the 10th number? :"<<endl;
cin >>num10;
cout<<endl;
result = compare(num1,num2,num3,num4,num5,num6,num7,num8,num9,num10);
cout<<"the largest number is : "<<result<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
return 0;
}
//please enter three numbers and I will tell you the largest number you entered
//the first number? :
//65431
//the second number? :
//345143
//the thrid number? :
//54235
//the largest number is : 345143
meka hari hadala denna danna kenek

int max = 0;
int arr[] = {5,12,14,18,19,11,15,45,25,48};
for(int i = 0; i < 10;i++){
if(max < arr[i]){
max = arr[i];
}
}
System.out.println("Max - " + max);
