Header Ads Widget

C++ program to print Your name 5 times on the screen

 

 C++ program to print Your name 5 times on the screen

Write a program to print your name 5 times on the screen .

Sample Output

EasyCodingZone
EasyCodingZone
EasyCodingZone
EasyCodingZone
EasyCodingZone

 C++ program to print Your name 5 times on the screen

The objective of the code is to print the name 5 times on the screen .

Code(C++):-

#include <iostream>
using namespace std;
int main()
{
       int i,n=5;

for(i=1;i<=5;i++)
{
cout<<"EasyCodingZone\n";
}
return 0;
}

Output:-

EasyCodingZone
EasyCodingZone
EasyCodingZone
EasyCodingZone
EasyCodingZone

Recommended Post :-

HCL Coding Questions:-

Capgemini Coding Questions:-

Companies interview:-

Full C course:-    

Key points:-

Cracking the coding interview:-

 Array and string:-

Tree and graph:-

Hackerearth Problems:-

Hackerrank Problems:-

Data structure:-

 MCQs:-