Kilobytes. That the smallest type of file you have on a computer.
Answer:
OR
Explanation:
The logical function is used to combine one or more logical condition their are many types of logical condition that are given below
- Logical OR
- Logical And
- Logical Not
The Logical OR Function returns true when any of the condition is true and it returns false when both the condition are false
Following are the example in C programming language
In the programming language it is represented by ||
a=90;
b=98;
c=187;
int t=(c< b || b>a)
it returns true because one condition is true i.e b>a .
The truth table of OR logical function is given below
A B Result
True True True
True False False
False TRUE TRUE
FALSE FALSE FALSE
Answer:
pancakes = int(input("Enter number of pancakes "))
if pancakes>3:
print("Yum!")
else:
print("Still hungry!")
Explanation:
It is a very simple program in python programming language
The input function is used to prompt user to enter a value for the variable pancakes
Using if and else constructs the program outputs Yum! or Still Hungry
Answer:
see the code snippet below writing in Kotlin Language
Explanation:
fun main(args: Array<String>) {
sumOfNumbers()
}
fun sumOfNumbers(): Int{
var firstNum:Int
var secondNum:Int
println("Enter the value of first +ve Number")
firstNum= Integer.valueOf(readLine())
println("Enter the value of second +ve Number")
secondNum= Integer.valueOf(readLine())
var sum:Int= firstNum+secondNum
println("The sum of $firstNum and $secondNum is $sum")
return sum
}