Any can give me the code for this programme? i tried hard and i just dont understand the function usage but i definately understand the problem of this program.
Write a program which accepts an integer from the keyboard and
prints out the corresponding number of the character "*". For
example, if the integer 5 is entered, five "*" will be printed out
by making a call to a function printstars().
Program outline:
and also anyone know any good site that gives good and clear explanation on Function(Basic) to above. i just cant understand the Fuction chapter in my book.Code:CPP / C++ Code: main() { int num; cout << “Enter a number : “; cin >> num; printstars(num); }