String Functions of Java
//String Functions public class StrDemo { public static void main(String args[]) { int len; //Ways of String initializations...
//String Functions public class StrDemo { public static void main(String args[]) { int len; //Ways of String initializations...
a=b=c=0 a= int ( input ("Enter first number:")) b= int ( input ("Enter second number:")) c= int ( input ("...
a=b=0 a= int ( input ("Enter first number:")) b= int ( input ("Enter second number:")) max=a; if (b>max)...
#Create the List Items thislist = ["apple", "banana", "cherry"] print ('1.',thislist) print (...
import math print("math.pi :",math.pi) print("math.e :",math.e) print("math.ceil(1.0...
''' Solve the quadratic equation ax**2 + bx + c = 0 ax2 + bx + c = 0, where a, b and c are real numbers and a ≠ 0 '...
# import math module import math a=10 b=20 c=30 d=math.sqrt(a*a + b*b + c*c) print("Result is",d) Output >>> Res...
'''Calculate the Gross Salary of an employee for following allowance & deduction. Get Basic Salary of Employee, DA = 25% of...
#Surface Area = 4 * PI * R * R pi=3.1428 r=float(input("Enter the Radius of Sphere:")) area=4*pi*r*r print("The Surface A...
# Area = PI * R * R pi=3.1428 r=float(input("Enter radius of Circle:")) area=pi*r*r print("The Area of Circle with",r,...
# BMI = kg/m^2 weight=float(input("Enter weight in kg :")) height=float(input("Enter height in mtr:")) bmi=weight/(hei...
length=float(input("Enter Length:")) breadth=float(input("Enter Breadth:")) area=length*breadth print("The Area o...
a=int(input("Enter 1st Number : ")) b=int(input("Enter 1st Number : ")) c=int(input("Enter 1st Number : ")) t...
name=input("What is your name ?") age=input("What is your age ?") school=input("In which school you study?...
#Arithmetic Operators with variables a = 10 b = 4 print ("The Initialized value of A is = ", a); print ("Th...
# Variable Definition num = 150 # An integer assignment mtrs = 15000.0 # A floating point name = "Wi...
#Multiple Ways for Assignment # 1. Assigning Same value to multiple variables. x = y = z = 500 print ("X = ",x,": ...
Download the File. Click here to Watch the Explanation & Developing Video