1
7
6 I think how many do you have to answer
ANSWER:
The full form of SEO is Search Engine Optimisation.
Hope this helps! :)
Have a lovely day! <3
Answer :
Written in java
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int year;
Scanner scanner = new Scanner(System.in);
System.out.print("Please enter a year\n\n");
year = scanner.nextInt();
while (year < 1582) {
System.out.print("\nPlease enter a different year above 1582\n");
year = scanner.nextInt();
}
if (year % 4 == 0) {
if(year % 100 ==0 && year % 400 != 0){
System.out.println(year + " is not a leap year\n\n");
}else {
System.out.println(year + " is a leap year\n");
}
} else {
System.out.println(year + " is not a leap year\n\n");
}
}
}
Answer:
Check the explanation
Explanation:
% iterate through each column (outer loop) , then iterate rows-1 (inner loop)
%take product of adjacent rows
mat = input('enter 5 by 5 matrix : ');
[R,C] = size(mat);
max_prod =0;
for c =[1:C]
for r=[1:(R-1)]
temp = mat(r,c)*mat((r+1),c);
if max_prod<temp
max_prod=temp;
end
end
end
fprintf('Greatest product : %i\n', max_prod)
Kindly check the output in the attached image below.