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
lcm program.

C program for bubble sort: void main() { int i,j,k,a[10],n; clrscr(); printf("How many values you want to enter\n"); scanf("%d",&n);  for(i=0;i  {  pri

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of t


write a programme that allows a user to enter 5 distinct words and returns them as a single string

want the codings for these topic in ur experts minds.com

A: Using the extern "C" linkage specification around the C function declarations. Programmers must know about mangled function names and type-safe linkages. After that they must

Pointer Types Pointer holds the address of an object, permitting for the indirect manipulation of that object. They are used in creating linked data structures like lists, tree

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst. Shortest remaining time rst algori

The Scope Resolution Operator( :: ) Global variables are explained outside any functions and thus can be used by all the functions defined thereafter. However, if a global vari