Advertisement
KDOXG

Básico da Programação — Iniciante

Dec 20th, 2018
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {   //int main (){
  5.     int i=0;
  6.     char c, k;
  7.     k = 'k';
  8.     i = Soma5DezVezes(i);
  9.     c = k;
  10.     printf("%d Isto e um inteiro, %c Isto e um caractere. %c Isso tbm", i, c, 'a');
  11.     printf("\nPerceba que nem tudo que foi declarado antes esta sendo impresso na tela. Curioso...");
  12.     printf("\nRealmente tudo que escrevo aqui aparecera depois");
  13.     //return 0;
  14.     return;
  15. }
  16.  
  17. int Soma5DezVezes(int soma)
  18. {
  19.     soma = soma + 5 + 5 + 5 + 5 + 5 + 5 + 5 + 5 + 5 + 5;
  20.     return soma;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement