how to find area of triangle in java

Mastering Web Development

Mastering Web Development: A Guide to HTML, CSS, and JavaScript Mastering Web Development. In today's digital age, web development has…

1 year ago

What is Functional Programming

What is Functional Programming What is Functional Programming - Functional programming is a paradigm that treats computation as the evaluation…

1 year ago

TOP 10 ANDROID MULTIPLAYER GAMES (UNDER 500MB 2023)

TOP 10 ANDROID MULTIPLAYER GAMES UNDER 500MB.(2023) Clash Royale Clash Royale is a real-time multiplayer game where players collect and…

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

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

How to write a java menu driven program to check whether the given number is automorphic Or buzz number.

import java.util.Scanner;class AutomorphBuzz{public static void main(){Scanner kb=new Scanner(System.in); System.out.println("Enter a number to check whether a number is an Automorphic or…

3 years ago