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

Write a program to calculate the timetable, Write a program to calculate th...

Write a program to calculate the timetable for numbers 1 -> 10 and display them as follows. Your solution should use for do loops      #include stdio.h void main() {    char p

Structures of flowchart, Ask Draw a flowchart that print all even numbers f...

Ask Draw a flowchart that print all even numbers from 2 until 10

The Polishing Game, Byteland county is very famous for luminous jewels. Lum...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Objects as function arguments, Objects as Function Arguments: In C prog...

Objects as Function Arguments: In C program there are several methods to define arguments, and in some case even a structure can be approved as an argument.  Similarly in C+

''c'' programme, Write a ''C'' program to accept any 3 digit integer number...

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

, Question 1 / 1 You have an N x N chessboard and you wish to place N king...

Question 1 / 1 You have an N x N chessboard and you wish to place N kings on it. Each row and column should contain exactly one king, and no two kings should attack each other (two

Stone game, A game is played with three piles of stones and two players. At...

A game is played with three piles of stones and two players. At her turn, a player removes one or more stones from the piles. However, if she takes stones from more than one pile,

Char, how many bytes required to char

how many bytes required to char

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