M

@ManasJasani

tweg

Lua
3 years ago
age=io.read("*n") if(age>=60) then io.read("The amount you have to pay is $400") elseif(age>=15 and age<60) then io.write("The amount you hav to pay is $550") end

2cx

Lua
3 years ago
age=io.read("*n") if(age>=60) then io.read("The amount you have to pay is $400") elseif(age>=15 and age<60) then io.write("The amount you hav to pay is $550") end

2cx

Lua
3 years ago
ba=io.read("*n") if(ba>=5000 and ba<10000) then io.write("The amount you have to pay after discount of $500 is ",ba-500) elseif(ba>=10000 and ba<15000) then io.write("The amount you have to pay after discount of $750 is ",ba-750)

2cx

Lua
3 years ago
hr=io.read("*n") if(hr<10) then io.write("You will be charged $10 ") elseif(hr>=10 and hr<20) then io.write("You will be charged $20 ") elseif(hr>=20 and hr<30) then io.write("You will be charged $30")

gbsb

Lua
3 years ago
hr=io.read("*n") if(hr<10) then io.write("You will be charged $10 ") elseif(hr>=10 and<20) then io.write("You will be charged $20 ") elseif(hr>=20 and<30) then io.write("You will be charged $30")

twe

Lua
3 years ago
hr=io.read("*n") if(hr<10) then io.write("You will be charged $10 ") elseif(hr>=10 and <20) then you

twe

Lua
3 years ago
ba=io.read("*n") if(ba>=5000 and ba<10000) then io.write("The amount you have to pay after discount of $500 is ",ba-500) elseif(ba>=10000 and ba<15000) then io.write("The amount you have to pay after discount of $750 is ",ba-750)

ery

Lua
3 years ago
age=io.read("*n") if(age>=60) then io.read("The amount you have to pay is $400") else if(age>=15 and age<60) then io.write("The amount you hav to pay is $550") end

ery

Lua
3 years ago
y=io.read("*n") if(y%400==0)or(y%4==0)and(year%100~=0) then io.write(y," is a leap year.") else io.write(y," is a not leap year") end

ery

Lua
3 years ago
m=io.read("*n") phy=io.read("*n") Chem=io.read("*n") if(m>=65)and(phy>=55)and(Chem>=50) then io.write("Congaratulations!!!!!") else io.write("Better luck next time!") end

ery

Lua
3 years ago
num=io.read("*n") m=num%2 if(m==0) then io.write("The number is even.") else io.write("The number is odd.") end

Negitive or positive

Lua
3 years ago
n=io.read("*n") if(n>=1) then io.write("The number is possitive.") elseif(n<=-1) then io.write("The number is negitive.") end

ew

Lua
3 years ago
age=18 if(age>=18) then io.write("The person can vote") else io.write("The person cannot vote") end

doubt

Lua
3 years ago
a=100 if(a=10) then io.write("The value of ",a," is 10.") else if(a=20) then io.write("The value of ",a," is 20.") else if(a=30) then io.write("The value of ",a,"is 30.")

Joe

Lua
3 years ago
a=100 if(a>20) then io.write(a," is greater than 20") else io.write(a," is less than 20") end

ete

Lua
3 years ago
a=10 if(a<20) then io.write(a ," is less than 20") end print(" ") io.write("The value of a is ",a)

Percentage

Lua
3 years ago
num1=io.read("*n") num2=io.read("*n") percentage=(num1*100/num2) io.write("The percentage of ",num1," and ",num2," is ",percentage)

Basics operations

Lua
3 years ago
r=io.read("*n") area=3.14*(r^2) cr=2*3.14*r io.write("The Radius is ",r) io.write(" ") io.write("Area of the circle is ",area) io.write(" ") io.write("The circumference is ",cr)

Basics operations

Lua
3 years ago
num1=io.read("*n") num2=io.read("*n") io.write("The sum of ",num1," and ",num2," is ",num1+num2) io.write(" ") io.write("The difference of ",num1," and ",num2," is ",num1-num2) io.write(" ") io

Square

Lua
3 years ago
num1=io.read("*n") io.write("The square of ",num1," is ",num1*num1)