Posts

Client and Server Network

Image
Client and Server Network A computer is a machine that can be instructed to carry out sequences of arithmetic or logical operations automatically via computer programming. Modern computers can follow generalized sets of operations, called programs. These programs enable computers to perform an extremely wide range of tasks. A "complete" computer including the hardware, the operating system (main software), and peripheral equipment required and used for "full" operation can be referred to as a computer system. This term may as well be used for a group of computers that are connected and work together, a computer network or a computer cluster. Computer technology combines the hardware of computers and computer-controlled devices with software operating systems, authoring tools, expert systems, and courseware to support training technology. Client-server model is a distributed application structure that separate tasks or workloads between the providers of a...

Experience of not going tour

Hello it's me Sunil Singh tamang. Today I'm going to share my experience of not going tour. I spent my whole day by playing online games with my friends. It was really a enjoyable moment for me. I woke up morning at 6 o clock. My friends called me to play game. From 6 o clock I start playing game. It was my daily routine of holiday. Thank you.

25. WAP to display

1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 CLS A = 5 FOR I = 1 TO 10 PRINT A A = A + 5 NEXT I END

24. Wap to display

1 1 2 1 2 3 1 2 3 4 5 1 2 3 4 5 CLS FOR I = 1 TO 5 FOR J = 1 TO I PRINT J; NEXT J PRINT NEXT I END

23. 5,10,15,20 ... 10 term

CLS A = 5 FOR I = 1 TO 10 PRINT A A = A + 5 NEXT I END

22. 1,4,9,16... term

CLS FOR I = 1 TO 10 PRINT I ^ 2 NEXT I END

21. 1,1,2,3,5,8 up to 10 term

CLS A = 1 B = 1 FOR I = 1 TO 10 C = A + B A= B B = C NEXT I END

20. Multiplication table

CLS INPUT ''Enter any number''; N FOR I = 1 TO 10 PTINT N ; ''X'' ; I ; ''='' ; N * I NEXT I END

19. Display factorial

CLS INPUT ''Enter any number''; N F = 1 FOR I = 1 TO N F = F * I NEXT I PRINT ''Factorial number''; F END

18. Display factor

CLS INPUT ''Enter any number''; N FOR I = 1 TO N IF N MOD I = O THEN PRINT I NEXT I END

17. Display prime or composite

CLS INPUT ''Enter any number''; N C = 0 FOR I = 1 TO N IF N MOD I = 0 THEN C = C + 1 NEXT I IF C = 2 THEN PRINT ''The given no is composite'' ELSE PRINT ''The given no is prime'' END IF END

16. Armstrong

CLS INPUT ''Enter any number''; N A = N S = 0 WHILE N < > 0 R = N MOD 10 S = S + R ^ 3 N = N / 10 WEND IF A = S THEN PRINT ''The given number is armstrong'' ELSE PRINT ''The given number is not armstrong'' END IF END

15. Palindrome

CLS INPUT ''Enter any number''; N A = N S = 0 WHILE N < > 0 R = N MOD 10 S = S + 10 * R N = N / 10 WEND IF A = S THEN PRINT ''The given number is palindrome'' ELSE PRINT ''The given number is not palindrome'' END IF END

14. Display reverse digit

CLS INPUT ''Enter any number''; N S = 0 WHILE N < > 0 R = N MOD 10 S = S * 10 + R N = N / 10 WEND PRINT ''Reverse digit''; S END

13. Display product of digit

CLS INPUT ''Enter any number''; N P = 1 WHILE N < > 0 R = N MOD 10 P = P * R N = N / 10 WEND PRINT ''Product of digit''; P END

12. Display sum of digit

CLS INPUT ''Enter any number''; N S = 0 WHILE < > 0 R = N MOD 10 S = S + R N = N / 10 WEND PRINT ''Sum of digit''; S END

11. Display greatest among three number

CLS INPUT ''Enter any number''; N IF A>B and B>C THEN PRINT ''The greatest number is''; A ELSE IF B>A and B>C THEN PRINT ''The greatest number is''; B ELSE PRINT ''The greatest number is''; C END IF END

10. Odd or even

CLS INPUT ''Enter any number''; N IF N MOD 2 = 0 THEN PRINT ''The number is odd'' ELSE PRINT ''The given number is even'' END IF END

9. positive, negative or zero

CLS INPUT ''Enter any number''; N IF N = 0 THEN PRINT ''Given number is positive''; ELSE IF N<0 THEN PRINT ''Given number is negative'' ELSE PRINT ''Given number is zero'' END IF END

8. Volume of cylinder

CLS INPUT ''Enter radius''; R INPUT ''Enter height''; H V = 22/7*R^2*H PRINT ''Volume of cylinder''; V END