Answer to Question #14225 in C++ for Cj

Question #14225
create a c++ program that will display 10 digit numbers into words. (functions, looping)
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS