[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/tejaspundpal/Java-programs/main/loop_que.java [Back]  [Original]

import java.util.*;
public class loop_que
{
    public static void main(String[] args)
    {
        //Example 1
//        Scanner sc = new Scanner(System.in);
//        System.out.println("Enter any no : ");
//        int n = sc.nextInt();
//        for(int i = n; i > 0;i--)
//        {
//            for(int j = 0;j < i;j++)
//            {
//                System.out.print("*");
//            }
//            System.out.println();
//        }

        //Example 2
//          Scanner sc = new Scanner(System.in);
//          System.out.println("Enter the no : ");
//          int n = sc.nextInt();
//          int sum = 0;
//          for(int i = 0;i

Web Proxy Viewer  |  New URL  |  Original Page