Joined
Last Seen
-2 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #55.0K
3 Posted Topics
Re: int decimal,remender,sum=0,i=1; cout<<"enter your integer and decimal number"<<endl; cin>>decimal; do{ remender=decimal%2; sum=sum+(i*remender); decimal=decimal/2; i=i*10; } while(decimal>0) cout<<"the binary number is="<<sum<<endl; | |
Re: int n1,n2, result; cout<<"enter first number"<<endl; cin>>n1; cout<<"ente second number"<<endl; cin>>n2; result=n1+n2; cout<<"the result is ="<<result<<endl; | |
|
The End.