Skip to content

Daily Archives: August 8, 2018

  1. Home>
  2. 2018>
  3. August>
  4. 8

Friend Function In CPP

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

To access personal data of class we use the friend function. The friend function is not the member of the class but still, we can access its members. For calling…

Continue ReadingFriend Function In CPP

CPP Program For Prime Number

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

#include<iostream.h> #include<conio.h> void main () { clrscr(); int n,i,x=0; cout << "enter any number" << endl; cin >> n; for(i=2;i<n;i++) { if(n%i==0) { x++; } } if(x==0) { cout <<…

Continue ReadingCPP Program For Prime Number

CPP Program For Factorial

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

#include<iostream.h> #include<conio.h> void main() { clrscr(); long a,b,c=1; cout << "enter any number" << endl; cin >>a; for(int i=1;i<=a;i++) { c=c*i; } cout << c << endl; getch(); } Output:…

Continue ReadingCPP Program For Factorial

CPP Program For Binary Search

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

A user is asked to enter 5 elements for searching. Then it will ask you to search that particular number. And it will display its position if the number present…

Continue ReadingCPP Program For Binary Search

Recent Posts

  • Hello world!
  • How to publish the first blog post | Get Indexed | Google
  • 8 Ways to make money through blogging|Passive Income
  • Build a strong blogging brand | Best tips for blogging
  • Add Facebook page plugin to the blog

Recent Comments

  1. A WordPress Commenter on Hello world!
Copyright [oceanwp_date] - Design by Unique Ratlam Ajanta Talkies Road

WhatsApp us