All pastes #455734 Raw Edit

Anonymous

public text v1 · immutable
#455734 ·published 2007-04-24 12:35 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>

float somme(float x, float y);
float inverse(int i);

int main ()
{
	int a,b;
	do
	{
		system("cls");
		printf("Entrez deux entiers a et b :\n");
		scanf("%d",&a);
		scanf("%d",&b);
	}while(a == 0 || b == 0);

		printf("%.5f\n",somme(inverse(a),inverse(b)));

	printf("\n\n");
	system("PAUSE");
	return 0;
}

float inverse(int i)
{
	float j;
	j=(float)1/i;
	return j;
}

float somme(float x, float y)
{
	float z;
	z=x+y;
	return z;
}