Answer:
// here is code in the C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main() {
// variable to store the input
int birth_month,birth_year;
cout<<"enter birth month:";
// read the birth month
cin>>birth_month;
cout<<"enter birth year:";
// read the birth year
cin>>birth_year;
// print the output
cout<<birth_month<<"/"<<birth_year<<endl;
return 0;
}
Explanation:
Declare two variables to store the birth month and birth year.Read the inputs from the user and assign it the variables.Print the birth month and year separated by a slash "/".
Output:
enter birth month:1
enter birth year:2000
1/2000
num = float(input("Enter a number: "))
num1 = int(num)
print(num - num1)
I hope this helps!
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
}
Advantages
Increase your productivity. ...
Connects you to the Internet. ...
Can store vast amounts of information and reduce waste. ...
Helps sort, organize, and search through information. ...
Get a better understanding of data. ...
Keeps you connected. ...
Help you learn and keep you informed. ...
Can make you money.
Disadvantages
Too much sitting. ...
Carpal tunnel and eye strain. ...
Short attention span and too much multitasking. ...
Potential of loss of privacy. ...
Can limit learning and create a dependency. ...
Time sink and lots of distractions....
order: soil, plant seeds, water, seedling, corn plant