Skip to main content

simple c language program for find maximum from 3 number.(coding)




 #include<stdio.h>

void  main()
{
      int a,b,c;
      printf ("enter first number:");
      scanf("%d",&a);
      printf ("enter second number:");
      scanf("%d",&b);
      printf ("enter third number:");
      scanf("%d",&c);
   
       if(a>b)
       {
             if(a>c)
              { 
                printf ("%d is maximum                                                                             number",a); 
              }
             else
              {
                 printf ("%d is maximum                                                                             number",c); 
              }
        }
        else
        {
             if(b>c)
             { 
                printf ("%d is maximum                                                                             number",b);
              }
             else 
             {
              printf ("%d is maximum                                                                             number",c); 
             }
          }
}
      

Popular posts from this blog

Top ten Most Expensive Diamonds in the World for ever in history

Diamonds last forever, diamonds are a girl’s best friend, a diamond in the rough: these sayings all emphasise the beauty and strength of world’s most famous gems. Take a look at the 10 most expensive diamonds in the world in this Catawiki story! 10. The orange - 32 million euros This 14.82-carat bright orange diamond broke a world record when it sold for 32 million euros in 2013. Generally, pink and blue diamonds are the most sought after, but this rare gem surprised the world with its orange beauty and size. 9. The Princie - 33 million euros This pink, 34.54- carat diamond has been known of for 300 years now, after it was discovered in the Golconda mines in India. It was bought from the Hyderabad Royal family in 1960 by jewellers Van Cleef & Arpels, who named it the Princie after the son of Sita Devi, the Maharanee of Baroda, an extravagant and famous socialite living in Paris. 8. Graff Vivid Pink – 38,7 million euros A rectangular 24.78-carat diamond, classi...

TOP LAPTOP BRANDS IN THE WORLD

When going to purchase a laptop, individuals consider different specifications to suit their needs. Finding the desired laptop can seem a daunting task since there are numerous brands in the market. Due to technological advancement, many laptop manufacturers have emerged and if not careful, you may end up a victim of unscrupulous dealers. This article will highlight the top 10 best laptop brands of 2013. All brands are designed in different ways to take care of consumer need. Style, functionality, fashion and size are some of the factors that manufacturers consider when developing laptops. A potential laptop buyer needs to conduct thorough research prior to settling for any deal. Below is a compiled list of top laptop brands that can be helpful to any laptop buyer. 10 MSI Laptop Brand Sets the bar for all Haswell gaming laptops Micro-Star International is one of the best and least popular laptop brands. This company has been in existence since 1986 and is a renowned IT manu...

What is a quantum computer? All things about quantum computer.

Quantum computer is future technology of computer. It is faster than super computer.It works on base on quantum physics.It is more secure in data encryption,data storage,data processing, more precise etc. IBM, NASA, GOOGLE are leading companies which are developing quantum computer.                       Quantum computer A quantum computer is any device for computation that makes direct use of distinctively quantum mechanical phenomena, such as superposition and entanglement, to perform operations on data. In a classical (or conventional) computer, information is stored as bits; in a quantum computer, it is stored as qubits (quantum bits). The basic principle of quantum computation is that the quantum properties can be used to represent and structure data, and that quantum mechanisms can be devised and built to perform operations with this data. Although quantum computing is still in its infancy, experiments have bee...