Pages

C++ Programming Tutorials - 2 (Input Output)

tut5.cpp =


#include<iostream>
using namespace std;
// This tut contains input output function

int main(){ 
int num1,num2;
cout<<"Enter value of num1 is:";// << this is insertion operator
cin>>num1;// >> this is extraction operator
cout<<"Enter value of num2 is:";
cin>>num2;
cout<<"The sum of num1 and num2 is:"<<num1+num2;
return 0;

}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Top 10 Python Packages Every Developer Should Learn

Top 10 Python Packages Every Developer Should Learn There are more than  200,000 Python packages  in the world (and that’s just counting tho...