jituTechnology

jituTechnology

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();
}

No comments yet.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2026
S M T W T F S
 1234
567891011
12131415161718
19202122232425
2627282930