#include stdio.hvoid 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;}
#includestdio.h#includemath.hint m;int main(){printf("enter a number:");scanf("%d",&m);printf("%d",m%2==0);return 0;}
import java.awt.*;What is the length of the application box made the following Java program?import java.applet.*;public class abhiapplet extends Applet{Graphic gf;gf.drawString("Sookshmas applets", 15, 15);}
#include stdio.hWhat will be the outputusing namespace std;int main(){int array[] = {10, 20, 30};cout -2[array];return 0;}