cloud host

WRITE A PROGRAM TO PRINT A BINARY RIGHT ANGLED TRIANGLE UPTO N TERMS IN JAVA

class Btri { public static void main(String args[])         {             int i, j,n;           n=Integer.parseInt(args[0]);                          for (i = 1; i <= n; i++)             {                 for (j = 1; j <= i; j++)                 {                     if (j % 2 == 0)                     {                         System.out.print(“0 “);                     }                     else                     {                         System.out.print(“1 “);                     }                 }                     System.out.println(“”);             }          }       } OUTPUT:

WRITE A PROGRAM TO CHECK WHETHER A NUMBER IS ARMSTRONG NUMBER OR NOT IN JAVA

class ArmstrongNumber  {     public static void main(String args[])      {         int n, temp , r, s=0 ;         n=Integer.parseInt(args[0]);         temp = n;         while (temp != 0)        {             r = temp % 10;             s = s + (r * r * r);             temp = temp / 10;         }         if (n== s)        {             System.out.println(” It is an Armstrong Number”); …

WRITE A PROGRAM TO CHECK WHETHER A NUMBER IS ARMSTRONG NUMBER OR NOT IN JAVA Read More »

WRITE A PROGRAM TO FIND THE FIBONACCI SERIES UPTO N TERMS IN JAVA

class Fibonacci { public static void main(String args[]) { int num = Integer.parseInt(args[0]);  System.out.println(“**Fibonacci Series**”); int f1, f2=0, f3=1; for(int i=1;i<=num;i++) { System.out.print(” “+f3+” “); f1 = f2; f2 = f3; f3 = f1 + f2; } } } OUTPUT:

WRITE A PROGRAM TO FIND THE PRIME NUMBERS BETWEEN 1 TO 100 In JAVA.

class prime  {      public static void main(String args[])      {          int i,k,j;          for(i=1;i<100;i++)          {              k=0;              for(j=2;j<i;j++)              {                  if(i%j==0)                  {                      k=1;                      break;                  }              }              if(k==0)              {                  System.out.print(” “+i);              }          }      }  } OUTPUT:

[Fix] Getting”ERR_EMPTY_RESPONSE” on your site?

The err_empty_response message can happen when utilizing the Chrome program and you’re attempting to access a site. It implies that information isn’t being sent/communicated.  The “ERR_EMPTY_RESPONSE” seems when perusing online, and therefore the site you’re attempting to urge to isn’t reacting or sending information in light of your solicitation. This is often a typical mistake …

[Fix] Getting”ERR_EMPTY_RESPONSE” on your site? Read More »

Shopify vs WordPress: Which is Best For Building Your Online Store?

What is Shopify? Shopify is an across the board arrangement which empowers you to make an internet store, affect your items, and handle instalments utilizing a solitary service. Shopify works with its clients with all of their prerequisites to make, develop, and affect an internet store under one rooftop. It is a splendid stage covering …

Shopify vs WordPress: Which is Best For Building Your Online Store? Read More »