lookjapan.COM - IRC ve mIRC dünyasının forumu!

lookjapan.COM - IRC ve mIRC dünyasının forumu! (http://www.lookjapan.com/index.php)
-   C ve C++ (http://www.lookjapan.com/forumdisplay.php?f=148)
-   -   Girilen 5 adet sayının toplamını bulan program (http://www.lookjapan.com/showthread.php?t=3928)

Entrance 23 Temmuz 2016 19:58

Girilen 5 adet sayının toplamını bulan program
 
Kod:

#include <stdio.h>

/* by Entrance */

int main()

  int sayi[5], toplam =0;
 
  for(int i = 0; i<5; i++)
  {
            printf("%d. sayiyi giriniz : \n",i+1); scanf("%d", &sayi[i]);
            toplam+=sayi[i];
  }
  printf("%d", toplam);
}



All times are GMT +3. The time now is 04:00.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.