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

When i develop a destructor, When I develop a destructor, do I require to e...

When I develop a destructor, do I require to explicitly call the destructors for my member objects?

Described access privileges in c++? what is the default , A: In C++ the acc...

A: In C++ the access privileges are public, private and protected. The default access level assigned to members of a class is private. Private members of any class are accessible o

Explain variables, Variables Information stored in a variable can alter...

Variables Information stored in a variable can alter in the course of the program. The type used in the definition explains the kind of information the symbol can store. Variab

Is always the default constructor for fred fred::fred()?, Is always the def...

Is always the default constructor for Fred Fred::Fred()?

C++ Program Please see where i do mistake, #include #include #include ...

#include #include #include #include #include class Employee { private: char *Name; //Set them as pointers... int IdNumber; char *Department; char *Position; public: voi

Heating and thermodynamic, i want software to calculate heating or use ther...

i want software to calculate heating or use thermodynamic equation , pleas help me

Need to fix a code written in c++, Need to Fix a code written in c++,SDL2.0...

Need to Fix a code written in c++,SDL2.00 for high CPU and memory leak There is a 2D simple game written with SDL2.00 using c++. The game isn't complete and the code is a little

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