#include <stdio.h>
#include <stdlib.h>
void delta(int a, int b, int c, int *d){
*d = b*b-4*a*c;
a= 7;
}
int main(){
int x,y,z,d;
printf("digite 3 coeficintes");
scanf("%d%d%d",&x,&y,&z);
delta(x,y,z, &d);
printf("discriminante:%d \n", d);
printf("x: %d \n", x);
}
adicionando ponteioro em relaçao a ultima versao
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.