BCA Raipur - BCA Notes S-1

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; ...

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  {    ...

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...

Sunday, 15 June 2014

Our terms of use are changing

We're updating our terms of use and privacy statement. ...