Showing Page:
1/1
#include<iostream.h>
#include<conio.h>
void main(){
int no;
clrscr();
cout<<"\n\n\nEnter a 4 - digit number ";
cin>>no;
int n1=no/1000;
no=no%1000;
int n2=no/100;
no=no%100;
int n3=no/10;
int n4=no%10;
clrscr();
cout<<"\n\n\n"<<n1<<"\t"<<n2<<"\t"<<n3<<"\t"<<n4<<"\n\n\n";
cout<<n1<<"\t"<<n2<<"\t"<<n3<<"\n\n\n";
cout<<n1<<"\t"<<n2<<"\n\n\n";
cout<<n1;
getche();
}

Unformatted Attachment Preview

#include #include void main(){ int no; clrscr(); cout<<"\n\n\nEnter a 4 - digit number cin>>no; int n1=no/1000; no=no%1000; int n2=no/100; no=no%100; int n3=no/10; int n4=no%10; clrscr(); "; cout<<"\n\n\n"<
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4