we provide you the c downloads,c programing,c tutorials and much more at www.cplusplus-in.blogspot.com.Codes of c++ are also there for your help.This blog build your c programing style.
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
Subscribe to:
Post Comments (Atom)
program is wrong,please kg/1000 change into kg*1000.
ReplyDeletecplusplus example codings
ReplyDeleteMoving 3D Box in free space