1.

C++ में एक प्रोग्राम लिखिए, जो किसी दो अंकीय पूर्णांक का पहाड़ा छापे। 

Answer»

#include<iostream.h>
void main( )
{
int n, i, table;
cout<<"Enter the number:";
cin>>n;
cout<<"Table\n";
for(i = 1; i< = 10; i++)
{
table = n* i;
cout<< table << endl;
}
}

आउटपुट

Enter the number: 12

Table
12
24
36
48
60
72
84
96
108
120

 



Discussion

No Comment Found