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
Darkc0der Darkc0der is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 598
Rep Power: 14
Darkc0der mempunyai hidup yang Normal
Default [NEED HELP] DevC++

gan, tolong buatin rumus devC++

plz




Quote:





Diberikan diberikan sebuah angka, tentukan selisih antara angka tersebut dengan kebalikan

angka tersebut! Contoh, N = 10, maka selisihnya adalah 9, karena 10 � 01 = 9.



Input

Input akan terdiri dari beberapa testcase (tidak lebih dari 100). Setiap testcase akan terdiri

dari 1 buah angka N (N ? 10 pangakat 10). Nilai N = 0 akan mengakhiri input.



Output


Untuk setiap testcase, cetak selisih antara N dan kebalikan N.



Sample Input


10

111

12

0

Sample Output

9

0

9







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 03:16 PM.


no new posts