+ 2
How to print Nirmal in series
N NI NIR NIRM NIRMA NIRMAL
7 Antworten
+ 21
cout<< " Nirmal in series"<<endl; // *_*
+ 19
cout<<"N\n"<<"NI\n"<<"NIR\n"<<"NIRM\n"<<"NIRMA\n"<<"NIRMAL\n";
+ 9
Write it down on an editor like notepad, then use the printer to print it... hey, you said print
-_-
+ 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;
}
+ 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
+ 5
What's Nirmal?
+ 2
its name