Azra
Bronze Üye
-
- Katılım
- 11 Mart 2014
-
- Mesajlar
- 3.834
-
- Tepkime puanı
- 13
-
- ForumSAL Yaşı:
- 12 yıl 7 ay
- Kıdem:
- Forumun Eskisi
-
- Yaş
- 35
Kod:
[COLOR=#006600]#include <iostream.h>[/COLOR]
[COLOR=#006600]main()[/COLOR]
[COLOR=#006600]{[/COLOR]
[COLOR=#006600]int x, y;[/COLOR]
[COLOR=#006600]y= 0;[/COLOR]
[COLOR=#006600]cout<< " Bir Sayi Giriniz ( Sayi < 100 olmak sart ile) : ";[/COLOR]
[COLOR=#006600]cin>>x;[/COLOR]
[COLOR=#006600]while (x< 101)[/COLOR]
[COLOR=#006600]{[/COLOR]
[COLOR=#006600] y =y+x;[/COLOR]
[COLOR=#006600] x =x+1;[/COLOR]
[COLOR=#006600]}[/COLOR]
[COLOR=#006600]cout<< "Toplam= "<< y;[/COLOR]
[COLOR=#006600]}[/COLOR]