Answer to Question #14225 in C++ for Cj
create a c++ program that will display 10 digit numbers into words. (functions, looping)
1
2012-09-07T09:05:51-0400
#include <iostream>
using namespace std;
int func(char *ch){
int i = 0;
for (; ch[i] != '\0' ; i++);
return i;
}
int main (){
char a[1000];
cout<<"ENter word\n";
cin>>a;
cout<< "Numbers of word: "<< func(a)<<endl;
system("pause");
return 0;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment