The document defines several variables of type int, char, and String to hold values for comparing numbers, characters, strings, calculating mathematical operations, storing user input like name, age, taxable income, and marks of a student. The variables will be used to perform various operations like comparing, calculating, and storing values in programs.
The document defines several variables of type int, char, and String to hold values for comparing numbers, characters, strings, calculating mathematical operations, storing user input like name, age, taxable income, and marks of a student. The variables will be used to perform various operations like comparing, calculating, and storing values in programs.
The document defines several variables of type int, char, and String to hold values for comparing numbers, characters, strings, calculating mathematical operations, storing user input like name, age, taxable income, and marks of a student. The variables will be used to perform various operations like comparing, calculating, and storing values in programs.
The document defines several variables of type int, char, and String to hold values for comparing numbers, characters, strings, calculating mathematical operations, storing user input like name, age, taxable income, and marks of a student. The variables will be used to perform various operations like comparing, calculating, and storing values in programs.
n2 int Holds the second number to be compared ch1 char Holds the first character to be compared ch2 char Holds the second character to be compared v1 int Holds the numeric value of the first character v2 int Holds the numeric value of the second character st1 String Holds the first string to be compared st2 String Holds the second string to be compared l1 int Holds the length of the first string l2 int Holds the length of the first string obj - Object created
Variables Datatype Description
wd String Holds the word st1 String Holds the substring of the word st2 String Holds the substring i int Helps in running the outer loop chr char Checks if the character is a vowel p int Holds the length of the string
Variable Datatype Description
n int Holds the input number ch char Holds the choice a char Holds the option for the logarithm b char Holds the option for the absolute value c char Holds the option for the square root d char Holds the option for the random numbers l double Holds the calculated logarithmic value abs int Holds the calculated absolute value sq double Holds the calculated square root r double Holds the calculated random number Variable Datatype Description g String Holds the choice age int Holds the age ti int Holds the taxable income tax int Holds the calculated income tax
Variable Datatype Description
nm String Holds the name of the student m int Holds the average marks of the student
Variable Datatype Description
num int To store the number rnum int To store the reverse of the number num2 int Temporary variable rem int To store the remainder q int To store the quotient n1 int Stores the value of345 n2 int Stores the value of 672 n3 int Stores the value of13602 s int Holds the reverse