How to write a java program to print series
How to write a java program to print series. In the world of programming, series printing is a fundamental task that …
How to write a java program to print series. In the world of programming, series printing is a fundamental task that …
How to create java program to bubble sort the values in ascending order. Today we will discuss how to print values …
In this post i have shared a java program which is mostly asked by students of computer science. THANK YOU FOR …
import java.util.*;class function{public static double gen(double i1,double i2,char c1){double i3=0;switch(c1){case ‘+’:i3=i1+i2;break;case ‘-‘:i3=i1-i2;break;case ‘*’:i3=i1*i2;break;case ‘/’:i3=i1/i2;break;case ‘%’:i3=i1%i2;break;}return i3;}public static void main(){ Scanner in=new …
Automorphic numbers are those which are found on the extreme right side of their square.For example : – 5=25 6=36 25=625 …
import java.util.*;class Nums_Sum{public static void main(){Scanner in=new Scanner(System.in);double n=0,sp=0,sn=0;do{System.out.println(“Enter number “);n=in.nextDouble();if(n>0)sp=sp+n;if(n<0)sn=sn+n;if(n==0)System.out.println(“0 input terminating.”);}while(n!=0);System.out.println(“Sum of positive number “+sp);System.out.println(“Sum of negative number “+sn);}} …
Firstly what is an anime:—- An anime basically is an animated cartoon.it have several types of generes like: *Romance *action *Adventure …
import java.util.*;class factorial{public static void fact(int n){int i=0,f=1;for(i=1;i<=n;++i)f=f*i;System.out.println(f);}public static void main(){Scanner in=new Scanner(System.in);System.out.println(“Enter a number to find its factorial”);int inp=in.nextInt();fact(inp);}} In …