Computer Science, asked by leratoramanyaka53, 11 hours ago

Write a program which inputs weight in grams and then calculates and outputs weight in kilogram

Answers

Answered by cometaandrei7
0

Answer:

#include<stdio.h>

#include<conio.h>

int main()

{

   float kg, g;

   printf("Enter weight in Kilogram: ");

   scanf("%f", &kg);

   g = kg*1000;

   printf("Equivalent weight in Gram = %0.2f", g);

   getch();

   return 0;

}

Similar questions