Using function, write program that prints your name 10 times. The Function can take no arguments and should not return any value

Using function, write a complete program that prints your name 10 times

Using function, write a complete program that prints your name 10 times. The Function can take no arguments and should not return any value

Object: Using function, write a complete program that prints your name 10 times. The Function can take no arguments and should not return any value.

Code:

#include<iostream>
#include<conio.h>
using namespace std;
void nam();
void main()
{
cout<<“\n\t:Print Name 10 Times:\n\n”;
nam();
getch();
}
void nam()
{
int i;
for(i=1;i<=10;i++)
{
cout<<i<<“. “<<“Sean\n”;
}
}

Output:

Using function, write a complete program that prints your name 10 times. The Function can take no arguments and should not return any value

M.A Siddiqui

Hi, I am M.A Siddiqui. I'm a Computer Science Student, In this website, I'm teaching you Multiple languages and provides Projects and other Subjects Notes.

You may also like...

1 Response

  1. June 14, 2020

    […] Using function, write program that prints your name 10 times. The Function can take no arguments and… […]

Leave a Reply

Your email address will not be published. Required fields are marked *