write a java program to calculate are of a triangle whit sides 16.5

Creating a true/false java quiz.

Creating a true/false java quiz using BlueJ can be done through several steps. Below is an example Java program that…

2 years ago

Climate Of India

Climate Of India- India has diverse climatic conditions. There are sharp variations in its temperature and precipitation from one place…

2 years ago

Mahatma Gandhi:My experiments with truth(Biography) short note 2023

Mahatma Gandhi Mahatma Gandhi was the greatest national leader of India. He was also a great politician, an organiser and…

2 years ago

Finding Minimum, Maximum, and Sum of Array Elements in Java

Finding Minimum, Maximum, and Sum of Array Elements in Java Java program to initialize given data in an array and…

3 years ago

Write a program to input a character. Convert the character into its opposite case. Program should continue as long as the user wants.

import java.util.*; class alphabet { static Scanner in=new Scanner(System.in); public static void main() { char c=' '; do { System.out.println("Enter…

3 years ago

How to write a java program to accept n numbers as input from user till user inputs 0, the program will terminate when user inputs 0, after terminating the sum of all positive numbers and sum of all negative numbers will be displayed on screen.

import java.util.*;class Nums_Sum{public static void main(){Scanner in=new Scanner(System.in);double n=0,sp=0,sn=0;do{System.out.println("Enter number ");n=in.nextDouble();if(n>0)sp=sp+n;if(n<0)sn=sn+n;if(n==0)System.out.println("0 input terminating.");}while(n!=0);System.out.println("Sum of positive number "+sp);System.out.println("Sum of negative number…

3 years ago

How to write a java program to accept a number as input from user and check whether it is a special number or not.

import java.util.Scanner;class Special_Number{public static void main(){Scanner sc = new Scanner (System.in);System.out.println("Enter any no.");int n = sc.nextInt ();int f = 0;int…

3 years ago

Top 5 Anime to watch as a beginner.

Firstly what is an anime:---- An anime basically is an animated cartoon.it have several types of generes like: *Romance   *action   …

3 years ago

WAJP to create a function that accepts an integer and find and prints the factorial of integer.

import java.util.*;class factorial{public static void fact(int n){int i=0,f=1;for(i=1;i<=n;++i)f=f*i;System.out.println(f);}public static void main(){Scanner in=new Scanner(System.in);System.out.println("Enter a number to find its factorial");int inp=in.nextInt();fact(inp);}}…

3 years ago