Wap to print the largest number from any 10 numbers, C/C++ Programming

WAP TO PRINT THE LARGEST NUMBER FROM ANY 10 NUMBERS

#include stdio.h>

#include conio.h>

 

void main()

 

{

                   int a[10],i,max;

                   clrscr();

 

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

 

                   {

                             printf("\t\t Enter Number: ");

                             scanf("%d", &a[i]);

                   }

                             max=a[0];

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

 

                   {

                             if(max

                                    max=a[i];

                   }

 

                             printf("\n\n\t\t Maximum Value is: %d",max);

 

                   getch();

 

}

 

OUTPUT:

 

 

896_WAP TO PRINT THE LARGEST NUMBER FROM ANY 10 NUMBERS.jpg

Posted Date: 9/10/2012 9:05:29 AM | Location : United States







Related Discussions:- Wap to print the largest number from any 10 numbers, Assignment Help, Ask Question on Wap to print the largest number from any 10 numbers, Get Answer, Expert's Help, Wap to print the largest number from any 10 numbers Discussions

Write discussion on Wap to print the largest number from any 10 numbers
Your posts are moderated
Related Questions
store the name of the political parties and the corresponding votes in two lists of equal length. access the lists is provided by two methods, each of which creates an interator th

I require a flowchart for push , & pop operation on stack using array

Need assignment help What's the order that local objects are destructed?

hi i want wite a C++ program that get one logical phrase (included {x,y,z,w,1,0}) and simplify it! but i ''m confused! thanxs for anubody help me...

Compiler Design - Limit In The Method Instructions

decode smugglers are very smart in day by day

Problem: (a) Using a class hierarchy of your own choosing, with at least TWO subclass levels, show (i) the use of abstract and concrete forms of Java class and method in you

What is copy constructor? describe the concept of copy constructor.

Q-What is your reaction to following line of code?               delete this; A: This is not a good programming Practice. A good programmer will insist that you must absolute

how do i print out invalid input?