Write a program in java to find the area and circumference of a circle ring, whose outer and inner radii are 5cm and 2cm. Programming Beginner To Advanced class circle_ring{ public static void main(String args[]) { int r1=5,r2=2; double a,c; a=3.14*(r1*r1+r2*r2); c=2*3.14*7; System.out.println("Area of the circle="+a); System.out.println("Circumference of the circle="+c); }} Share This: Facebook Twitter Google+ Stumble Digg Related Posts:Write a program in Java to accept two numbers and find the HCF/GCD and LCM of numbers. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; Greatest Common Divisor/- The highest numb… Read MoreWrite a program in Java to accept a number and check number is Perfect or not. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; A number is called perfect if it is equal … Read MoreWrite a program in java to print the Alphabets (A, B, C, D ….. Z) var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; class Print_Alphabets{ p… Read MoreWrite a program in Java to reverse or mirror image the entered number. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; import java.util.*;class reverseno { … Read MoreWrite a program in java to display all the prime numbers from 1 to 100. var aax_size='728x90'; var aax_pubname = 'javapba-21'; var aax_src='302'; import java.util.*;class primeno_1to100{&n… Read More