Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Guesuper Guesuper is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 408
Rep Power: 14
Guesuper mempunyai hidup yang Normal
Default [ask][java]penjumlahan dalam int variable

mau nanya nih pada sesuhu sekalian...

gimana sih caranya menjumlahkan nilai2 yang ada di dalam sebuah int variable...

contoh :

masukkan tahun : 2010

proses yg akan dilakukan : 2+0+1+0

hasil yg akan keluar : 3



mohon petunjuknya klo ada coding nya sekalian nubitol nih... tengkyu...



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 04:04 PM.


no new posts