Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
}
 
PREVIOUS NEXT
Tagged: #input #output
ADD COMMENT
Topic
Name
6+7 =