Sunday 16 November 2014

How to Calculate table in c puls plus programming complete code.





// saved name : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<iostream>
using namespace std;


int main()
{

int table,lenght,c;
cout<<"Enter the table";
cin>>table;
cout<<"Enter the table lenght";
cin>>lenght;
for(c=1; c<=lenght; c++)
{
cout<<table<<"*"<<c<<"="<<table*c<<endl;
}
system("pause");
return 0;
}

-------------------------------------------------------

table using c++



0 comments:

Post a Comment