Answers for "cpp input output"

C++
2

input output c++

#include <iostream>
int main() {
  int year; //variable created as a integer
  std::cin >> year;//It takes input from the user
  std::cout << "Year: " << year; //It prints output on the screen
}
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language