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

    


Convert to megabytes to kilobytes
 

 

Description

Convert to megabytes to kilobytes.

Code

/*
convert megabytes to kilobytes
*/
#include <stdio.h>

int main(void)
{
double megabytes , kilobytes;
printf("Please enter the amount of megabytes to convert.\n");
scanf("%Lf",&megabytes);
/*convert megabytes to kilobytes*/
kilobytes = megabytes * 1024;
/*convert kilobytes to megabytes*/
/*this is for kilobytes to megabytes*/
/*megabytes = kilobytes / 1024*/
printf("There are %Lf kilobytes in %Lf megabytes.\n",kilobytes,megabytes);

return 0;
}

Information

tested using Visual C++ 6

 

 

 

 

Download

mbtokb.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
str_replace example(php)
Random URLs(PHP)
Ceil function(C)
The Register news(PHP)
number of entries in a log file(VBScript)
List al disk drives(VBScript)
Check when a process stops running(Powershell)
send an AOL instant message(VB)

    




Copyright © 2003 by programmershelp.co.uk