My first Work

<strong>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;</strong>
 
float bol(a,b)
int a,b;
{
    float c;
      c = (float) a/b;
      return c;
}
 
int topla(d,z)
int d,z;
{
    int y;
    y= d + z;
    return y;
}
int main()
{
    int x,y,z;
    int toplananSayi;
    float bolunenSayi;
    printf("Aralarina virgul koyarak uc sayi giriniz, ORNEK 34, 22, 16 veya  9,3, 5 gibin");
    printf("Gireceginiz ilk iki sayi toplanacak ve ucuncu sayiya bolunecektir.n");
    scanf("%d, %d, %d", &amp;x, &amp;y, &amp;z);
    toplananSayi=topla(x,y);
    bolunenSayi=bol(toplananSayi,z);
    printf("Sonuc %f dir", bolunenSayi);
 
  system("PAUSE"); 
  return 0;
}

we could do same procees easly with functions

Sende Fikrini Belirt :)

Yorumunuz: