₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,152 members, 8,420,574 topics. Date: Friday, 05 June 2026 at 03:13 AM

Toggle theme

Post Your Source Codes - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingPost Your Source Codes (708 Views)

1 Reply

Post Your Source Codes by Rhaspody(op): 7:51pm On Sep 27, 2014
I'm fairly new to java programming. this is my first java code. it's simple and straight to the point. I hope to create a program that solves algebra and other simple maths

 class myformlr
{
double base, height, triArea;
void calc()
{
triArea = (base*height)/2;
System.out.println("Area of the triangle =" + triArea);
}
void values(double b, double h)
{
base = b;
height = h;
}
}
class trigarea
{
public static void main(String args[])
{
myformlr trig = new myformlr();
trig.values(5,4);
trig.calc();
}
}



post yours if you have any
1 Reply

Download Free Project Source Codes And Materials From ProjectbasketFree Source Codes For All LanguagesAfter Writting The Source Codes,how Do I Make It An Application Software!234

Any Technology To Convert 'better' Dream To Reality Yet?Command LineAbout Adsence Achievement Cards Congratulations Message