Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

Followers

how to make your desired table using while loop in c++

how to make a table using c++


How to make a table in c++:-
I also tell you about write the table using c++ before,But now i tell you a different method to write your desired table in c++ using while loop in c++. So try this it is very simple to learn.
#include<iostream.h>
#include<conio.h>
main()
{
      int x,y,z;
      y=1;
      cout<<"enter the value for which you want the table:";
      cin>>x;
       cout<<"enter the value up to  which you want the table:";
       cin>>z;
      while(y<=z)
      {
                  cout<<x<<"*"<<y<<"="<<y*x<<endl;
                  y=y+1;
                  }
                  getch();
                  }
End