answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you write code for 1 to 500 Armstrong number in socket programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a java program to check a number is Armstrong number?

import java.io.*; public class Jerry { public static void main(String as[]) throws IOException { int k=Integer.parseInt(as[0]); int n=k; int d=0,s=0; while(n>0) { d=n%10; s=s+(d*d*d); n=n/10; } if(k==s) System.out.println("Armstrong number"); else System.out.println("not Armstrong number"); } }


How do you write steven Armstrong in Arabic?

Steven Armstrong = ستيفن ارمسترونغ


How is event driven programming different from other programming?

write a note on event driven programming


How programming language is useful in system programming?

Without programming languages you couldn't write (system) programs.


Did Lil Hardin Armstrong write a book?

no ;)


How did Neil Armstrong write on the moon?

with a pen


How do you write a Java program to see whether a number is Armstrong or not... using Buffered Reader and stuff ....?

import java.io.*; class Armstrong { public static void main()throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter a number"); int a=Integer.parseInt(in.readLine()); int n1=a,rev=0,d=0; while(a!=0) { d=a%10; rev=rev+d*d*d; a=a/10; } if(rev==n1) System.out.println("It is a armstrong number "); else System.out.println("It is not a armstrong number "); } }


Write a Diary entry- on the day when neil Armstrong landed on the moon.?

Neil Armstrong landed on the moon some ideas what you could do write a diary for Neil Armstrong for the day he landed on the Moon could include emotions or a description and information for on the journey


Did Neil Armstrong write a book and what was his first paragraph?

yes


What can c programming do?

by using this we can write a coding for operating systems


How do you write a c program to get a range from user and give a list of prime numbers?

To get all tutorials of "c programming" Reference:cprogramming-bd.com/c_page2.aspx# prime number


Why does TCP server program have two sockets?

1)Socket 2)Server Socket Server socket is used for normal two-way socket communication. Socket class allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two methods available in socket class.