/*
* 1000+ C programs + tutorials
*
*
* 30_mb_to_kb_converter.c
*
*
* Created on: Oct 20, 2014
* Author: Code2care.org
*/
#include
//#include
void main() {
unsigned long kb;
unsigned long mb;
// clrscr();
printf(" Program to convert Megabyte to Kilobyte : ");
printf("\n\n Enter Length in Megabyte : ");
scanf("%lu", &mb);
kb = mb*1024;
printf("\n\n %lu Mb = %lu Kb \n",mb,kb);
// getch();
}
-
Output :
Program to convert Megabyte to Kilobyte :
Enter Length in Megabyte : 2
2 Mb = 2048 Kb
The best way to learn C programming is to practice more and more of programs .
Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.
BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.