This is the program for conversion of Kilogram to Gram.
// Program for conversion of Kg to g.
#include<iostream.h>
main()
{
float kg,g;
cout<<"Please Enter the value in Kg:";cin>>kg;
cout<<"\n";
g = kg / 1000;
cout<<"The value of the g is:"<<g;
cout<<"\n";
system("Pause");
}