Take Input From user and Display it.

 In this Lesson we are learning to take input from user. We take input using Extraction operator as cin>> Operator here.

 /*Taking Input from user*/

#include<iostream>

using namespace std;

int main(){

int a;

cout<< "Enter 1 integer";

cin>>a;

cout<< "The enter value is:"<<a;

return 0;}


0 Comments had been done yet:

Post a Comment