Sunday 10 June 2012

C++ Program for conversion of Kg to g.



 This is the program for conversion of Kg to g.
// 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");
      }
End

2 comments: