Testing write code into a post

This is another test post… yes, I know: you would like to kill me just because I’m doing a lot of test in this blog. Be patience, this is the last (I hope):

#include <stdio.h>

void soma (int, int, int *);

int main (void) {
	int vlr_a;
	int vlr_b;
	int resultado;

	printf("Entre com os valores: ");
	scanf("%d %d", &vlr_a, &vlr_b, &resultado);
	soma(vlr_a, vlr_b, &resultado);
	printf("Soma: %d\n", resultado);

	return 0;
}

void soma (int a, int b, int *valor) {
	*valor = a + b;
}

About Carlos Costa

My name is Carlos Roberto do Nascimento Costa, but you should call me Carlos Costa. I am Free and Open Source Software activist working as Software Engineer and Consulting.
This entry was posted in en_US. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>