Posts

Multiplexo-Gameo

 import java.util.*; public class Java_0 {     public static void main(String args[])     {         Scanner sc=new Scanner(System.in);         //creating Scanner Class         System.out.println("Enter your name");         String name=sc.nextLine();         //Accepts name from the user         System.out.println(name+" welcome to multiplexo-gameo");         System.out.println(name+" Hi! This is Gameo who will be assisting you throughout the program");         System.out.println("Please enter your birthday date");         int birthdaydate=sc.nextInt();//30         //Accepts birthday date of the user from the user         System.out.println("Please enter your birthday month");         int birthdaymonth=sc.nextInt();//01   ...

Creating patterns in Java with nested loops

  Nested Loops- Java v Nested loop means a loop within a loop. v It refers to a repeated iteration in a given number within an iteration. v To print different elements we print column value or the variable used for column. v To print the same elements we will print the value of the row or the variable used for a row. v Row means line. Column means element.   Given below is a basic program written for nested 'for' loops.   To print: @@@@ @@@@ @@@@ @@@@ public class Pattern  {     public static void main(String[] args)     {         int r,c;         for(r=1;r<=4;r++)         {             for(c=1;c<=4;c++)             {         ...