answersLogoWhite

0


Best Answer

#include<iostream.h>

#include<conio.h>

int main()

{

int a[10],j;

cout<<"Enter 10 numbers."<<endl;

for(int i=0;i<=9;i++)

cin>>a[i];

j=a[0];

for(i=0i<=9;i++)

{

if(j<a[i])

j=a[i];

}

cout<<"Largest number is "<<j<<endl;

return 0;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a program in C plus plus to find the largest of 10 numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?


Write a C plus plus program and flow chart to find the largest of the 3 numbers?

To find the largest of three numbers, first find the largest of two numbers: int max (int x, int y) { return x&lt;y?y:x; } Now you can use this one function to find the largest of three numbers: int max (int x, int y, int z) { return max (max (x, y), z); }


Write a Shell program to find the smallest number from a set of numbers?

k


How to write a program that ask user to enter numbers until user enter- 0 then find the biggest of entered numbers in C programming using while or do while?

int i, largest=0;do { scanf ("Enter a number (0 to exit): %d", i); if (i&gt;largest) largest=i; } while (i!=0); printf ("Largest number is: %d\n", largest);


How do you write a c program to find largest of 3 numbers using pointers?

Find the largest of two, then find the largest of that value and the third value. int* max (int* a, int* b) { return (a*) &gt; (b*) ? a : b; } int* max_of_three (int* a, int* b, int* c) { return max (max (a, b), c); }


What is the largest prime no that is stored in 8 bit pattern?

Write your own prime number program and find out.


Write a program to find the product of two numbers using Halving and Doubling method?

i need this answer


Write a C program to find the square of two numbers?

Please visit http://talentsealed.blogspot.com/2009/10/to-find-sqaure-of-numbers-using-c.htmlfor the answer.


Write a C program to find the sum of all prime numbers?

Since there is an infinite set of prime numbers the answer would be infinity.


How do you find HCF of a set of numbers?

List the factors of each of the numbers in the set. Write down the numbers that appear on all the lists. Choose the largest one.