السلام عليكم
اخواني ماهو كود هاذ السؤال
صمم دالة (last_Num) لطباعة آخر قيمة موجبة في عناصر مصفوفة عدد صحيح.
و صمم دالة (last_Num) لطباعة اول قيمة موجبة في عناصر مصفوفة عدد صحيح.
int n,num;
Scanner read = new Scanner(System.in);
System.out.print(" Enter number of values : " );
n = read.nextInt();
for(int i=1;i<=n;i++)
System.out.print("\n" + "Enter num : ");
num = read. nextInt();
if(num>0)
System.out.println(num+ " \n " + " is positive");
else
System.out.println(num+ " " +" is negative");
How do I make an array in Java? You read the elements of the matrix, print them, and then find the largest and lowest value, the sum, and the arrangement of the matrix
Write a c ++ program that read two arrays and check the index for each array if they are even add the values of the arrays else subtract them. The result should be placed in anew array then print the new? Array
Write a c ++ program to Define, initialize and use all fundamental type of variables. The variable name must be more than 4 characters and must contain letters, number and? Underscore