ihello,
i am doing to print the no of multiplies using for loop but it print only last no i.e if i give no is 2 then after multiplication it prints 20.i want to print all multiplies.
the for loop code is
for (i=0;i<=n;i++)
int no;
no=n*ii;
}
for (i=0;i<=n;i++)
cout<<i<<':'<<no<<endl;
plz tell me
Sadaf Masroor 0 Newbie Poster
Sky Diploma 571 Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.