IDNLearn.com: Your trusted source for finding accurate and reliable answers. Ask anything and receive prompt, well-informed answers from our community of experienced experts.
Answer:
Java:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int number = sc.nextInt();
System.out.println(number + " " + number*2 + " " + number**2);
}
}
Python:
num = int(input("Number: "))
print(num+" "+num*2+" "+num**2)
C++:
#include <iostream>
int main() {
int number;
std::cin >> number;
std::cout << num << " " << num*2 << " " << num**2;
return 0;
}