## Task #5

**Write a MATLAB script to input two integer values and find out whether the first or the second number is greater.**

**Code:**
A=input('Enter the first integer value :');

B=input('Enter the second integer value :');

disp('Maximum number is')

if (A>B)

disp(A)

else
disp(B)

end

**Running:**

**
**

## Task #6

**Write a MATLAB script to calculate the sum of first 10 prime numbers **

**Code:**
Ayra=10;

numbers=primes(Ayra);
disp('Sum of 10 prime no.s is ')

SUM=sum(numbers)

**Running:**

**Share with your friends:**