Q) Write a program to display Numerals (1 to 10) in words
Ans:
Code:
#include <iostream>
#include <conio.h>
using namespace std;
int main (int argc, char *argv[])
{
cout <<"One"<<endl;
cout <<"Two"<<endl;
cout <<"Three"<<endl;
cout <<"Four"<<endl;
cout <<"Five"<<endl;
cout <<"Six"<<endl;
cout <<"Seven"<<endl;
cout <<"Eight"<<endl;
cout <<"Nine"<<endl;
cout <<"Ten"<<endl;
getch();
return 0;
}
#include <conio.h>
using namespace std;
int main (int argc, char *argv[])
{
cout <<"One"<<endl;
cout <<"Two"<<endl;
cout <<"Three"<<endl;
cout <<"Four"<<endl;
cout <<"Five"<<endl;
cout <<"Six"<<endl;
cout <<"Seven"<<endl;
cout <<"Eight"<<endl;
cout <<"Nine"<<endl;
cout <<"Ten"<<endl;
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10