A ring network is a network topology in which each node connects to exactly two other nodes, forming a single continuous pathway for signals through each node - a ring. Data travels from node to node, with each node along the way handling every packet.
/ common way to write int a=9,n=10 ; // n value you can take anything for(int i=1;i<=n;i++) { if(i%2==1) { System.out.print(a); } else { System.out..print(a*10+9); a--; }}
Comments
Post a Comment