
Write a java program to generate a following *'s triangle. Go to the editorĮxpected Output : Input number of rows: 5Ģ3. Write a Java program to display Pascal's triangle. Input number of rows (half of the diamond) : 7Ģ2. Write a program in Java to display the pattern like a diamond. Go to the editorĮxpected Output : Input number of rows : 5Ģ1. Write a program in Java to print the Floyd's Triangle. Write a program in Java to make such a pattern like a pyramid with a number which will repeat the number in the same row. Write a program in Java to make such a pattern like right angle triangle with number increased by 1.The pattern like : Go to the editor 1ġ9.

Write a program in Java to make such a pattern like right angle triangle with a number which will repeat a number in a row.The pattern is as follows : Go to the editor 1ġ8. Write a program in Java to display the pattern like right angle triangle with a number. The Sum of odd Natural Number upto 5 terms is: 25ġ6. Write a program in Java to display the n terms of odd natural number and their sum. Input the number (Table to be calculated) : Input number of terms : 5ġ5. Write a program in Java to display the multiplication table of a given integer. Go to the editorĮxpected Output : Number is : 1 and cube of 1 is : 1ġ4.

Write a program in Java to display the cube of the number upto given an integer. Write a program in Java to input 5 numbers from keyboard and find their sum and average. Write a program in Java to display n terms of natural numbers and their sum. Go to the editorĮxpected Output : The first 10 natural numbers are:ġ1. Write a program in Java to display the first 10 natural numbers. Write a Java program that takes a year from user and print whether that year is a leap year or not. If the user input is not a letter (between a and z or A and Z), or is a string of length > 1, print an error message. Print Vowel or Consonant, depending on the user input. Write a Java program that takes the user to provide a single character from the alphabet. Write a Java program to find the number of days in a month. Input floating-point another number: 25.589ħ. Write a Java program that reads in two floating-point numbers and tests whether they are the same up to three decimal places. Write a Java program that keeps a number from the user and generates an integer between 1 and 7 and displays the name of the weekday. Add "small" if the absolute value of the number is less than 1, or "large" if it exceeds 1,000,000. Otherwise, print "positive" or "negative". Write a Java program that reads a floating-point number and prints "zero" if the number is zero.

Take three numbers from the user and print the greatest number. Write a Java program to solve quadratic equations (use if, else if and else). Write a Java program to get a number from the user and print whether it is positive or negative.
