/*
* 1000+ C programs + tutorials
*
*
* 31_gb_to_mb_converter.c
*
*
* Created on: Oct 20, 2014
* Author: Code2care.org
*/
#include
//#include
void main() {
unsigned long gb;
unsigned long mb;
// clrscr();
printf(" Program to convert Gigabyte to Megabyte : ");
printf("\n\n Enter Length in Gigabyte : ");
scanf("%lu", &gb);
mb = gb*1024;
printf("\n\n %lu Gb = %lu Mb \n",gb,mb);
// getch();
}
-
Output :
Program to convert Gigabyte to Megabyte :
Enter Length in Gigabyte : 3
3 Gb = 3072 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.