- #1
Raghav Gupta
- 1,011
- 76
Write a “C++” program to read any integer number and print each digit into word.
I went like this
# include <iostream.h>
#include <conio.h>
void main(){
int a,b,c,d;
clrscr();
b=a
cout<<"Enter any number"<<endl;
cin>>a;
c=a%10;
d=a/10;
I am not getting further logic.
someone was saying for loop we also have to apply.
I went like this
# include <iostream.h>
#include <conio.h>
void main(){
int a,b,c,d;
clrscr();
b=a
cout<<"Enter any number"<<endl;
cin>>a;
c=a%10;
d=a/10;
I am not getting further logic.
someone was saying for loop we also have to apply.