victorialais

Conversão de anos em dias

Sep 24th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. main ();
  4.  
  5. {
  6.  
  7. int dias, anos;
  8.  
  9. printf ("Digite o numero de anos = ");
  10. scanf ("%d", &anos);
  11. dias= anos*365;
  12. printf ("Em dias, sao = ");
  13. scanf ("%d", dias);
  14. getch ();
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment