Write a program to read the weight in Gram and convert it to Kilogram and Gram
/*A propgram to read the weight in gram and convert it to to Kilogram and gram
programmed by
name: Jitendra yadav
roll: 16 */
#include <stdio.h>
#include <conio.h>
void main()
{
int kg,gm;
printf(“Enter the weight in Gram: “);
scanf(“%d”,&gm);
kg=gm/1000;
gm=gm-kg*1000;
printf(“Kg=%d and Gram=%d”,kg,gm);
getch();
}








