Computer Science, asked by Grecious, 11 months ago

Write a basic program to calculate the density of a liquid. Given the Density = Mass/Volume

Answers

Answered by mohammads
1

Answer:

We'll write it in c

Explanation:

#include <stdio.h>

void main()

{

int m,v;

printf("Enter the mass and volume of the liquid");

scanf("%d%d",m v);

printf("The density of the liquid is %d",m/v);

}

Answered by Anonymous
0

Answer:

Answer:

import java.util.*;

public class Liquid

{

public static void main (String args[])

{

Scanner in = new Scanner (System.in);

Explanation:

Explanation:

Similar questions
Math, 1 year ago