What will be the output of the following code?def thrive(n):if n % 15 == 0:print("thrive", end = " ")elif n % 3 != 0 and n % 5 != 0:print("neither", end = " ")elif n % 3 == 0:print("three", end = " ")elif n % 5 == 0:print("five", end = " ")thrive(35)thrive(56)thrive(15)thrive(39)
a = len('sookshmas beyondknowing')
b = int(a)
if b%2==0:
print('Two is the factor')
elif b%3==0:
print('Three is the factor')
elif b%7==0:
print('Seven is the factor')
elif b%5==0:
print('Five is the factor')
else:
print('It may be prime')#include <stdio.h>void solve() {int a[] = {1, 2, 3, 4, 5};int sum = 0;for(int i = 0; i < 5; i++) {if(i % 2 == 0) {sum += *(a + i);}else {sum -= *(a + i);}}printf("%d", sum);}int main() {solve();return 0;}