BASIC INPUT AND OUTPUT(L-4)
BASIC STRUCTURE FOR FUNDAMENTALS
#inlude<iostream>
using namespace std;
int mani(){
int num1,num2;
cout<<"Enter the value of num1";
cin>>num1;
cout<<"Enter the value of num2";
cin>>num2;
cout<<"The value of finale digit is "<<num1+num2;
return 0
}
cout -->This is for output(known as insertion opretor)
cin -->This is for input(known as extraction operator)
In 'cin' we are asked to put some value which is based on the function which we
have written.
for e.g like in above function we are asked to enter to numbers so that the
programme can add both numbers and give us the final output.
BASIC STRUCTURE FOR FUNDAMENTALS
#inlude<iostream>
using namespace std;
int mani(){
int num1,num2;
cout<<"Enter the value of num1";
cin>>num1;
cout<<"Enter the value of num2";
cin>>num2;
cout<<"The value of finale digit is "<<num1+num2;
return 0
}
cout -->This is for output(known as insertion opretor)
cin -->This is for input(known as extraction operator)
In 'cin' we are asked to put some value which is based on the function which we
have written.
for e.g like in above function we are asked to enter to numbers so that the
programme can add both numbers and give us the final output.