answersLogoWhite

0


Best Answer

#include

using std::cin;
using std::cout;
using std::endl;

int main()
{
string myNumber = "0";
cout << endl << "Enter a 6-digit number: ";
cin >> myNumber;

cout << endl << "You've entered: " << myNumber << endl;

for (int i = 0; i < myNumber/myNumber[0]; i++)
{
cout << endl << (i + 1) << " element is " << myNumber[i];
}


cout << endl;

system("PAUSE");
return 0;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program of 6-digits num and print that as series of digits and each digit is print on one line?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a Shell program to find the sum of cube of individual digits of a number?

no thanks


Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


Write a c program to solve cos series?

Please do.


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a program to find the sum of sine series?

Writing a program for a sum of sine series requires a rather long formula. That formula is: #include #include #include main() { int i,n,x; .


How do you write 85 thousand in digits?

you write 85 thousand in digits is like this Eighty- five -thousand


How do you write eighty one thousand in digits?

You write eighty one thousand in digits by doing 81,000.


What symbols are used to write numerals digits or coordinates or factors or divisors or asterisks?

digits


How do you write a C program to Calculate the Series. The Value of x and n must take from input terminal.?

Reference:cprogramming-bd.com/c_page2.aspx# sum the series


Write a program to find the number of digits in the number?

#include &lt;stdio.h&gt; int main(int argc, char **argv) { if (argc&lt;1) { printf("Usage: %s number\n",argv[0]); return -1; } int digits=1, i=atoi(argv[1]); while (i/=10) ++digits; printf("%d\n",digits); }


How do you write seventeen million eight hundred eighteen thousand seven?

Write the digits in such a way that there are six digits to the right of the number of millions, and three digits to the right of the thousands. Fill out missing digits with zeros.