Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

table of any number in java

import java.util.Scanner;  
public class TableExample  
{  
public static void main(String args[])   
{  
Scanner sc = new Scanner(System.in);  
System.out.print("Enter number: ");       
//reading a number whose table is to be print  
int num=sc.nextInt();  
//loop start execution form and execute until the condition i<=10 becomes false  
for(int i=1; i <= 10; i++)  
{  
//prints table of the entered number      
System.out.println(num+" * "+i+" = "+num*i);  
}  
}  
}  
Comment

PREVIOUS NEXT
Code Example
Java :: how to set audio of a java sound clip 
Java :: brxm remove property 
Java :: lombok get error in extended classes¨ 
Java :: random between two numbers java 
Java :: javafx event resize 
Java :: android studio print console 
Java :: React-Native Firebase Requests from referer are blocked 
Java :: java last element of array 
Java :: how to print arraylist 
Java :: How to efficiently find the middle node of a singly linked list without counting its nodes, in Java? 
Java :: how to use base64.getdecoder() android 
Java :: renardfute 
Java :: sum and array list java 
Java :: clear back stack android 
Java :: how to make an arraylist java 
Java :: java initialize array with same value 
Java :: datatypes in arduino 
Java :: error: package androidx.multidex does not exist 
Java :: java arraylist get second largest value 
Java :: how to get path of captured image in android 
Java :: minecraft java arguments 
Java :: adding 2 variable in java 
Java :: groovy string to json 
Java :: java code to reverse an integer 
Java :: android studio close app 
Java :: java do while schleife 
Java :: ++i vs i++ java 
Java :: jagged array java 
Java :: Get the first day of the current month in Java 
Java :: java swing pic 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =