java programs BBIT makaut

1.Program Name:- WAJP to display Hello world. Program source code:- class hello { public static void main(String args[]) { System.out.println(“Hello world. “); } } OUTPUT- Hello world. 2.Program Name:- WAJP to print prime numbers from 1 to 100. Program code:- import java.io.*; import java.util.*; class Prime1To100{ public static void main(String args[]){ int i,j,num=100,flag; for(i=1;i<=num;i++) { …

java programs BBIT makaut Read More »