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

•Flow Chart and Pseudocode of Add module - Hotel booking - Signup for new membership Delete module - Hotel reservation cancellation - Change of reservation

Provide me the answer, Can a constructor throws an exception? How to handle the error when the constructor fails?

Problem: (a) Show the Java approach to event processing by explaining how event handling works in Java. Make use of a suitable example to support your answer. (b) Describe

a program to find the area under curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b.   #include float start_point, /* G


what are assessor. elaborate with clear easy diagrams

Write C code for a program that implements a digital clock (HH:MM:SS). The clock includes a two-digit hour indicator HH (00-23), a two-digit minute indicator MM (00-59), and a t

how objects are initialized dynamically?

Write a ‘C’ program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.