Posts

Showing posts from June, 2021

how to make inheritance program in c++ very easy

 Source code  /* Make by:- skeleton programmer like & subscribe my channel */ #include <iostream> //#include<conio.h> using namespace std; //example of inheritence. //source code in discription. class base { private :     int a; public :     int b,c;     int setDataA() {         a = 6;     }     int setDataB() {         b = 483;     }     void display() {         c = a + b;         cout<< "The value of a + b \n" <<a<< " + " <<b<< " = " <<c<<endl;     } }; class derived: public base { public :     string name  = "Like & subscribe" ;     void display1() {      ...

how to find area of rectangle in c++

 Source code  #include <iostream> #include <conio.h> using namespace std; int main() { //find the area of rectangle int l,b; cout<< "Enter the value of 'l'-" ; cin>>l; cout<< "Enter the value of 'b'-" ; cin>>b; cout<< "The area of rectangle is=>" <<l*b;  getch(); cout<< "\nmake by:- " <<endl; cout<< "S K E L T O N " <<endl; cout<< "P R O G R A M M E R " <<endl;     return 0; }

For loop use and print 1 to 100 real number in c++

Image
         T E C H O R Z O      Y T          Source code is here  I am a small YouTuber and a beginar programmer. So you can help to grow my channel.i have 48 subscriber please help to get 100 subscriber. So please subscribe my channel. this is my blog and you can follow the blog i am daily upload for a new blog and the latest topic  rleted blog and many more.               Video is here #include <iostream> using namespace std; int main(){ //created by :-  T E C H O R Z O  for ( int a = 1; a<101; a++){ cout<< "EDIT TEXT " <<a<<endl; }     return 0; }