Gıda – Web – Teknoloji != Hasanibrahim

Iki gercel sayinin toplaminin tam sayi cinsinden gosterimi

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

#include stdio.h
#include stdlib.h

topla ( 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=topla(a,b);
  d=(int)c;
  printf("Sonuc= %d", d);
   
  return 0;
}

Fonksiyon belirleme ile %50 hiz artisi yapabilirsiniz :)

:, ,

Leave a Reply

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...