Gıda – Web – Teknoloji != Hasanibrahim

Tag: C de fonksiyon kullanımı

C Programlama dili ile sayı farkı

by on Mar.06, 2009, under ANSI C, Ödevler

Kullanıcı tarafından atanan iki gerçel sayının tam kısmını sunar.

#include stdio.h
#include stdlib.h
 
cikar ( float x, float y )
{
      float z;
      z=x-y;
      return z;
}
 
int main()
{
  float a,b,c; 
  int d;
  printf("bosluk birakarak iki gercel sayi giriniz. Orn: 12.322 16.2323n");
  scanf("%f %f", &a, &b);
  c=cikar(a,b);
  d=(int)c;
  printf("Sonuc= %d", d);
   
  return 0;
}

Fonksiyonlarla hayat daha kolay :p

Leave a Comment :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...