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 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 21
Braincode mempunyai hidup yang Normal
Default ada yang bisa bantu saya???pleazz

pagi semuanya...

saya sedang mencari rumus kerucut dengan program jcreator,

dari semalem saya coba sampe sekarang masih "error" juga

mohon bantuannya dimana salah saya & solusinya

trimakasih sebelumnya...

ini coding yang saya buat:



import java.io.*;

class Kerucut{

float luas(float a,float b){

return (PI*a*a*b);

}

public static void main (java.lang.String args[]){

int a=0;

int t=0;

double PI=3.14;

Kerucut hitung = new Kerucut();

BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

try{



System.out.println ("Kerucut");

System.out.print ("Jari-jari = ");

a = new Integer(input.readLine()).intValue();

System.out.println ("Tinggi = ");

t= new Integer(input.readLine()).intValue();

}catch (Exception e){

System.out.println ("error");

}

System.out.println ("Hasil Perhitungan");

System.out.println ("Luasnya = "+hitung.luas(a,t));

}

}

</div>
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


Terkait
Thread Thread Starter Forum Replies Last Post
ada yang bisa bantu saya ? soal gaib? filmhorror Misteri, Horror, Supranatural 0 29th April 2012 10:05 PM
(ask)ada yang bisa bantu ayah saya? tuyulsakti Misteri, Horror, Supranatural 0 22nd April 2012 06:36 PM
ada yang bisa bantu saya gak ya(penting) mencekam13 Misteri, Horror, Supranatural 0 22nd April 2012 03:48 PM
[WTA]Ada Yang Bisa Bantu Saya??! Braincode Shareware & Freeware 0 11th November 2011 03:36 PM

 


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