Sunday, December 2, 2012

Display string for desired number of times using C++


#include<iostream.h>
int main()
{
int a;
cout<<"Enter number of times to print string \n";
cin>>a;
for(int i=1;i<=a;i++)
{
cout<<"Well done \n";
}
return 0;
}

No comments:

Post a Comment

DC motor control with Pulse Width Modulation Part 1

DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...