Thursday, 13 October 2016

HHW Q13. WAP to print 10 multiples of entered no.

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter the no.";
cin>>a;
for (int i=1;i<=10;i++)
{ b=a*i;
  cout<<b<<"\n";
}
getch();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...