Monthly Archives: July 2012

Convert binary to decimal number

#include<iostream> #include<cmath> using namespace std; int main() { int bin,count=0,n=0,sum=0; cout<<“enter binary no.”; cin>>bin; while(bin!=0) { count=bin%10; sum=sum+count* pow(2,n); n=n++; bin=bin/10; } cout<<“decimal no. is =”<<sum<<“n”; } Advertisements

Posted in C++ | Leave a comment

Fibonacci series

#include<iostream> using namespace std; int main() { int a=0,b=1,c,n; cout<<“enter how many no. =”; cin>>n; cout<<a<<” “<<b<<” “; while(n!=0) { c=a+b; a=b; b=c; cout<<c<<” “; n–; } }

Posted in C++ | Leave a comment

To find sum of digits of a number

#include<iostream> using namespace std; int main() { int count,n,sum=0; cout<<“enter any number =”; cin>>n; while(n!=0) { count=n%10; n=n/10; sum=sum+count; } cout<<“sum =”<<sum<<“n”; }

Posted in C++ | Leave a comment

Interchanging two variables without using third variable

#include<iostream> using namespace std; int main() { int var1,var2; cout<<“Enter value of two variablesn”; cin>>var1>>var2; var1=var1+var2; var2=var1-var2; var1=var1-var2; cout<<“Values after interchangingn”; cout<<var1<<” “<<var2<<“n”; }

Posted in C++ | Leave a comment

Making own website through WordPress

WordPress is an open source content managment system(CMS).We can download and install it and can make our own website by using WordPess(CMS).WordPress is open source software, licensed under the GPL WordPress is web software you can use to create a beautiful website … Continue reading

Posted in CMS | 3 Comments

How to embed a youtube video in wordpress.com

Goto to youtube video and click on share and then click on embed button .A highlighted code after clicking on embed button,will be shown to you,select that code.Below that a custom box will shown.Select height of your youtube,width will automatically … Continue reading

Posted in CMS | Leave a comment

Elinks: FREE TEXT-BASED CONSOLE WEB BROWSER

ELinks is an advanced and well-established feature-rich text mode web (HTTP/FTP/..) browser.ELinks is an Open Source project covered by the GNU General Public License. commands on terminal:- $ sudo apt-get install elinks $ elinks

Posted in Uncategorized | 1 Comment