How to print Nirmal in series | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to print Nirmal in series

N NI NIR NIRM NIRMA NIRMAL

12th Jan 2017, 2:56 PM
Kunjan Jha
Kunjan Jha - avatar
7 Answers
+ 21
cout<< " Nirmal in series"<<endl; // *_*
12th Jan 2017, 3:03 PM
Frost
Frost - avatar
+ 19
cout<<"N\n"<<"NI\n"<<"NIR\n"<<"NIRM\n"<<"NIRMA\n"<<"NIRMAL\n";
12th Jan 2017, 3:28 PM
Frost
Frost - avatar
+ 9
Write it down on an editor like notepad, then use the printer to print it... hey, you said print -_-
13th Jan 2017, 4:06 AM
Supercolbat
Supercolbat - avatar
+ 8
#include <iostream> #include <cstring> using namespace std; int main() { char name[] = { 'N', 'I', 'R', 'M', 'A', 'L' }; string ser; for(int i=0; i<sizeof(name); i++) { ser+=name[i]; cout<<ser<<endl; } return 0; }
12th Jan 2017, 3:19 PM
Filip
Filip - avatar
+ 6
int main() { cout << "N" << endl ; cout << "NI" << endl ; cout << "NIR" << endl ; cout << "NIRM" << endl ; cout << "NIRMA" << endl ; cout << "NIRMAL" << endl ; } ^ It's not a joke
12th Jan 2017, 3:07 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 5
What's Nirmal?
12th Jan 2017, 3:01 PM
Filip
Filip - avatar
+ 2
its name
12th Jan 2017, 3:03 PM
Kunjan Jha
Kunjan Jha - avatar