nikolas_serafini

Lista 1 - Exercício 18

May 21st, 2013
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     float mass,mols;
  7.  
  8.     printf("Entre com o valor da amostra de carbono : \n"); scanf("%f",&mass);
  9.  
  10.     mols = mass/12;
  11.  
  12.     printf("A amostra contem %f mols!\n",mols);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment