Computer Science, asked by shaistaAlam, 7 months ago

write a program to accept a value in kg and convert into its equivalent gram value​

Answers

Answered by keyboardavro
0

Answer:

Explanation:

// Kilogram into Gram Conversion in C

#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