Can anyone help a newbie in c#? Looking for a few hints to start my code. I need to display a five digit number(integer) in 5 separate labels. Method to be used is modulus, inorder to peel off each digit and display in label. Can anyone help? Many Thanks, hope to be here on Daniweb for some time.
Chris

Welcome cma224

You need to create an array of Label and a loop.

Label []lab=new Label[5];

//Add the reference of Label1,Label2,....Label5 objects
lab[0]=Label1;     
lab[1]=Label2;
......

int no=32356;
int index=0;
int rem=0;
while(no>0)
 {
   rem= no % 10;
   lab[index].Text = rem.ToString();
   no= no /10;
  }
 ....
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.