Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Minimum and maximum values
 

 

Description

This example shows how to get the maximum and minimum values when comparing two numbers

Code


#include <stdio.h>
#include <stdlib.h>

int main()
{
printf("The minimum of %f and %f is %f\n",6.0,12.0,min(6.0,12.0));
printf("the maximum of %f and %f is %f\n",6.0,12.0,max(6.0,12.0));
return 0;
}

Information

tested using LCC Win 32

 

 

 

 

Download

minmax.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Screen resolution(VB)
Simple email example(C Sharp)
File System of drive(ASP)
decimal to hexadecimal conversion(PHP)
Launch notepad(C++)
List all fonts(VB)
The Register news(PHP)
Display all drives(VB)

    




Copyright © 2003 by programmershelp.co.uk