68 401
Assignments Done
98,5%
Successfully Done
In December 2018

Answer to Question #14225 in C++ for Cj

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

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions