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

Assignment Help:

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


Related Discussions:- Wap to print the largest number from any 10 numbers

Define bitwise left shift and right shift operators, Define Bitwise Left Sh...

Define Bitwise Left Shift and Right Shift Operators: >? The bitwise shift operators shift their first operand right (>>) or left ( // Illustration of the bitwise right shi

Standard template library , The STL details are described in many places on...

The STL details are described in many places online (see the CS377 webpage for some links), and there's a very quick introduction in Section A.14. Here are just a few additional no

Rules of function, Rules of function: Inline function created witho...

Rules of function: Inline function created without prototype it reduces the memory and it is used only for small function. Inline function cannot have recursion, static var

Described inline function?, A: The inline keyword tells the compiler to sub...

A: The inline keyword tells the compiler to substitute the code in the function de_nition for each instance of a function call. Though, substitution takes place only at the compile

Luminous Jewels - The Polishing Game, Damjibhai and Shamjibhai are two jewe...

Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed

Develop a biomedical imaging project, Develop a biomedical imaging project ...

Develop a biomedical imaging project Project Description: This is a biomedical imaging project. Skills required are C++ Programming, Cocoa, Mac OS, Objective C

Bank account system, To implement a back account system for new users

To implement a back account system for new users

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd