According to the number of quarts of water entered, it shows how many water molecules are contained in so much water.

Source: Internet
Author: User

The mass of 1 water molecules is about 950g 3.0x10-23g,1. Please write a program that asks you to write a program that asks for the number of water molecules that are contained in so much water based on the number of quarts of water you enter.

#include <stdio.h>

#include <stdlib.h>

int main ()

{

float n = 0;

scanf ("%f", &n);

n = (n * 950)/(3.0*1E-23);

printf ("%e", N);

System ("pause");

return 0;

}


The

Shows how many water molecules are contained in so much water based on the number of quarts of water entered.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.