/*
* 1000+ C programs + tutorials
*
*
* 29_kb_to_mb_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 Kilobyte to Megabyte : ");
printf("\n\n Enter Length in Kilobyte : ");
scanf("%lu", &kb);
mb = (kb/1024);
printf("\n\n %lu Kb = %lu Mb \n",kb,mb);
// getch();
}
-
Output :
Program to convert Kilobyte to Megabyte :
Enter Length in Kilobyte : 2048
2048 Kb = 2 Mb
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.