What will be the output of the following program?public class FinalReverseWithoutUsingStringMethods{public static void main(String[] args){String str = "Automation";StringBuilder str2 = new StringBuilder();str2.append(str);str2 = str2.reverse();reverseSystem.out.println(str2);}}
#include<stdio.h>int main(){int age;printf("enter the age:");scanf("%d",&age);if(age>=18 && age<=60){printf("younger");}else if(age<=18){printf("teenage");}else{printf("older");}}
class SookshmasWhat will be the output of the following code{public static void main(String args[]){arr[0]=7;arr[1]=6;arr[4]=4;System.out.println(arr[0]) ;System.out.println (arr[1]);System.out.println (arr[3]);}}