#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]);}}
#include <stdio.h>int main(){char c;printf("Enter a character: ");scanf("%c", &c);printf("ASCII value of %c = %d", c, c);return 0;}
Class switch{Public static void main (String [ ] agrs){Int i=2;Switch (i){case 1:{System.out.println ("case 1");}break;Case 2:{System.out.println ("case 2");}break;Case 3:{System.out.println ("case 3");}}}
#include<stdio.h>int main(){int fun(int);int i = fun(6);printf("%d\n", ++i);return 0;}int fun(int i){return (i--);}