JAVA DUPLICATION TABLE

Author Topic: JAVA DUPLICATION TABLE  (Read 651 times)

Offline varnishakalraTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
JAVA DUPLICATION TABLE
« on: 08-22-2019, 00:25:30 »
public class MultiplicationTable {
    public static void main(String[] args) {
        int num = 5;
        for(int i = 1; i <= 10; ++i)
        {
            System.out.printf("%d * %d = %d \n", num, i, num * i);
        }
    }
}




is it right duplication table or not?


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2586 Views
Last post 09-20-2011, 03:35:58
by Walalayo
0 Replies
1408 Views
Last post 10-13-2011, 02:12:02
by manvbf
3 Replies
5408 Views
Last post 08-19-2015, 01:48:54
by SanviMalhotra
0 Replies
1046 Views
Last post 11-14-2016, 03:19:21
by aarav
0 Replies
1783 Views
Last post 03-25-2017, 03:24:17
by beingchinmay