Wednesday 28 August 2013

Best Learning site C++

Que-Write a program to take integer value from user output will be doubled???

Ans:- #include<iostream.h>
int main()
{
int i ;
cout<<"Enter any integer value";
cin>>i;
i=i*2;
cout<<"The integer value will be doubled"<<i<<".\n";
return 0;
}

No comments:

Post a Comment