BCA Raipur - BCA Notes S-1

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-2

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-3

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-4

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-5

Post your notes and other just by mailing us at bcaraipur@live.com

google search

Popular Posts


Welcome to BCA Notes

>>>>>>>>>>>>>>>>

Visitors

Search This Blog

Blogger templates

Visitor Map


Thursday 26 June 2014

c++ program for finding HCF and LCM




Source Code:-
#include<iostream.h>
#include<conio.h>
 
int main()
 {
  int a,b,x,y,t,hcf,lcm;
 
  cout<<"Enter 1st number"<<endl;
  cin>>x;
  cout<<"Enter 2nd number"<<endl;
  cin>>y;
 
  a=x;
  b=y;
 
  while(b!=0)
  {
    t=b;
    b=a%b;
    a=t;
  }
 
  hcf=a;
  lcm=(x*y)/hcf;
 
  cout<<"HCF : "<<hcf<<endl;
  cout<<"LCM :"<<lcm;
 getch();
  return 0;
}

For any questions,query,suggestion & output :-
Contact Me
write to me
@
rishabhbaid96@gmail.com

c++ Program for generating Faboncii series

Source Code:-

#include<iostream.h>
#include<conio.h>
int main()
{

long int a=0,b=1,c=0,j;
cout<<"Enter the terms upto which you want to have faboncii series: ";
cin>>j;
cout<<a<<"\n";
//cout<<b<<"\n";

for (int i=0;i<=j;i++)
{
a=b;
b=c;
c=a+b;
cout<<c<<"\n";
}
getch();
return 0;
}

For any questions, query ,suggestion & output :-
Contact Me:-

rishabhbaid96@gmail.com

c++ Basic projects Converting a Decimal number to Binary Number

Source Code:-

#include <stdio.h>
#include<conio.h>
#include<iostream.h>
 
int main()
{
    int n,p,c,k,count=0;
cout<<"Enter the number to find ";
cin>>n;
p=n;
while(p)//ye kevel no of digit nikalne kai liye hai
{
      p=p/10;
      count++;
  }
   
  cout<<"in binary number system is:";
  if (count=1)
  count=2;
 c=count*count*count;
  for (c; c >= 0; c--)//cout is the no of digit
  {
    k = n >> c;
 
    if (k & 1)
      cout<<"1";
    else
      cout<<"0";
  }
 
  cout<<"\n";
 getch();
  return 0;
}
For any questions query & output :-
Contact Me

rishabhbaid96@gmail.com

c++ Basic projects Converting a binary number to decimal

Source Code:-

#include<iostream.h>
#include<conio.h>
#include<math.h>
int main()
{
  int x[10],count=0,n,sum=0,j,k=0;
  cout<<"Enter Binary Number: ";
  cin>>n;
 
  while(n>0)
  {
  x[count]=n%10;
  n=n/10;
  count++;
  }
  for(j=0;j<count;j++)
  {
      sum=sum+x[j]*pow(2,k);
      k++;
  }
  cout<<"Decimal Number: "<<sum;
  getch();
  return 0;
  }

For any questions query:-
Contact Me

Sunday 15 June 2014

Our terms of use are changing

Microsoft
Microsoft
We're updating our terms of use and privacy statement.
Our users' needs are at the center of everything we do. That's why we are updating the Microsoft Services Agreement and providing a Privacy Statement for Windows Services. We want to take this opportunity to highlight some of the key changes and what they mean for you.
Privacy
As part of our ongoing commitment to respecting your privacy, we won't use your documents, photos or other personal files or what you say in email, chat, video calls or voice mail to target advertising to you.
Transparency
We updated our Code of Conduct so you can better understand the types of behaviors that could affect your account, and added language that parents are responsible for minor children's use of Microsoft account and services, including purchases.
Simplicity
We tailor our privacy statements for each of our products to help make it easier for you to find the information that is important to you.
The Microsoft Services Agreement applies to your Microsoft account and includes many of our customer services such as Outlook.com, OneDrive, and Bing, while the privacy statement explains how your personal information is collected, used and protected across your Microsoft account, Outlook.com and OneDrive.
The new updates to these will take effect on July 31, 2014. If you continue to use our services after July 31, 2014, you agree to the updated terms or, if you don't agree, you can cancel your service at any time.
We encourage you to use the links below for further details and to view the full agreements online.
Thank you for using Microsoft products and services.
Privacy Policy
Microsoft

Microsoft respects your privacy. Review our online Privacy Statement.

Microsoft Corporation, One Microsoft Way, Redmond, WA 98052