Main Menu

HOME

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

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   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
Launch new hardware wizard(VB)
str_replace example(php)
time example(PHP)
Mozilla or Internet explorer(PHP)
display the current timezone(VB)
Change wallpaper(VB)
Get Machine IP Address(VB)
Directory browser(PHP)

    




Copyright © 2003 by programmershelp.co.uk