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

    


earth years to martian years
 

 

Description

This code converts earth years to martian years

Code

#include <stdio.h>

int main(void)
{
float earth_years , martian_years;
printf("Please enter the amount of earth years to convert.\n");
scanf("%f",&earth_years);

martian_years = earth_years * 365 / 687;
printf("Equivalent martian years is : %f\n",martian_years);
return 0;
}

Information

tested using Visual C++ 6

 

 

 

 

 

Download

earthtomars.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
analog clock(VB)
Search an array(C)
display MySQL database rows alphabetically(PHP)
Previous page button(Javascript)
display the timezone(VB.net)
free disk space using WMI(VBScript)
get the host address(ASP.net)
common dialog to list box(VB)

    




Copyright © 2003 by programmershelp.co.uk