Computer Science, asked by aroraarpana353, 9 months ago

Please answer this question,it's very important,I am having my exam tomorrow​

Attachments:

Answers

Answered by varunthacker3
0

#include <stdio.h>

int main()

{

int E;

char name[50];

printf("Enter Your Name : ");

gets(name);

printf("Enter Your weight on Earth in Kg : ");

scanf("%d" ,&E);

int M = E/6;

printf("The weight of %s on moon is %d kg" ,name,M);

return 0;

}

Similar questions