moranguinho

Ex3ER1

Apr 3rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // Apresentar os números entre 0 e 5, com intervalo de 0.25 entre eles, ou seja, 0, 0.25, 0.5, 0.75 ... 5.
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. float i;
  6.  
  7. printf("Numeros");
  8. for(i=0; i<=5; i=i+0.25){
  9. printf("\n%.2f\t", i);
  10. }
  11.  
  12. char ii;
  13.  
  14. printf("\n\nAlfabeto");
  15. for(ii='a'; ii<=122; ii++){
  16. printf("\n%c\t", ii);
  17. }
  18. }
Add Comment
Please, Sign In to add comment