Java Exp1-array

  • Uploaded by: jyotsna
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Java Exp1-array as PDF for free.

More details

  • Words: 120
  • Pages: 2
/*NAME : CLASS:- TE IT (1) ROLL NO :ASSIGTMENT NAME:- program to print even nos & prime no using 1D array */ public class Array { public static void main(String args[]) { int i=0,n=0,k=0,flag=0; int arr[]={11,13,14,15,16,19,18}; int even[]=new int[10]; int prime[]=new int [10]; int odd[]=new int [10]; n=arr.length; for(i=0;i
System.out.println(+arr[i]); } }

}

} /*output Even numbers are: 14 16 18 Odd numbers are: 11 13 15 19 Prime numbers are: 11 13 */

Related Documents

Java Java
June 2020 44
Java
November 2019 24
Java
November 2019 26
Java
December 2019 27
Java
November 2019 23
Java
November 2019 25

More Documents from ""

Service Blueprint
April 2020 10
Java Exp1-temp
April 2020 6
Java Exp1-array
April 2020 10
Cn Question Bank
April 2020 5
Hci Unit 1 Ch-02
April 2020 10