2

@20602144

php website works in w3skld

PHP
2 years ago
<html> <head><h1><center>VARIOUS SITE COLLLECTION</h1></head> <title>webpages</title> <body bgcolor="grey"> <div><BR><h3> <form name="one" method = "post"> <input type ="radio" name="grp" value="sports">Sports<br><br> <input type="radio" name="grp"

website n validation php ##but not running##

PHP
2 years ago
<html> <body> <p> <form name ="login" action ="" method="post"> user name:<input type = "text" name ="txtbox" ><BR> password:<input type = "password" name ="pswd" ><BR> <input type ="submit" value ="Login"> </form></p> <?php $message="";

write a python program for string operations

Python
2 years ago
print('Hello world!') # Define two strings string1 = "Hello, " string2 = "World!" # Concatenate strings concatenated_string = string1 + string2 print("Concatenated String:", concatenated_string)

list operation

Python
2 years ago
print('Hello world!') # Create an empty list my_list = [] # Add elements to the list my_list.append(1) my_list.append(2) my_list.append(3) # Print the list

prime number- python

Python
2 years ago
def is_prime(n): if n <= 1: return False if n <= 3: return True if n % 2 == 0 or n % 3 == 0: return False i = 5 while i * i <= n: if n % i == 0 or n % (i + 2) == 0:

largest element n avg of the elements of array C#

C#
2 years ago
using System; class Program { static void Main() { Console.Write("Enter the number of elements: "); if (int.TryParse(Console.ReadLine(), out int n) && n > 0) { int[] numbers = new int[n];

ATM TRANSACTION C#

C#
2 years ago
// Program to demonstrate ATM transaction // in C# using System; class ATMDemo { public static void Main() { int totalBalance = 50000; int depositAmount = 0; int withdrawAmount = 0;

c# largest n the avg of an array

C#
2 years ago
using System; class Program { static void Main() { Console.Write("Enter the number of elements: "); if (int.TryParse(Console.ReadLine(), out int n) && n > 0) { int[] numbers = new int[n];

factorial of a number-shell

Bash
2 years ago
#!/bin/bash echo "Hello world!" echo "Enter a number" read num fact=1 while [ $num -gt 1 ] do

write a shell script to find a number is armstrong or not

Bash
2 years ago
#!/bin/bash echo "Enter a number: " read c x=$c sum=0 r=0 n=0 while [ $x -gt 0 ] do r=`expr $x % 10`

write a shell program for finding Sum Of Odd And Even Numbers

Bash
2 years ago
#!/bin/bash echo "enter" read num rev=0 even=0 odd=0 while [ $num -gt 0 ] do tmp=$(( $num % 10 ))

leap year- pearl

Perl
2 years ago
#!/usr/bin/perl # Prompt the user to enter a year print "Enter a year: "; my $year = <STDIN>; chomp($year); # Check if it's a leap year if ((($year % 4 == 0) && ($year % 100 != 0)) || ($year % 400 == 0)) { print "$year is a leap year.\n";

reversing a number

Bash
2 years ago
echo "Enter a number" read num t=$num reverse=0 while [[ $num -gt 0 ]] do remainder=$(( $num % 10 )) reverse=$(( $reverse * 10 + $remainder )) num=$(( $num / 10 ))

reverse of num

Bash
2 years ago
echo 'Enter a number' read n digit=$n rev=0 while [ $n -gt 0 ] do r=`expr $n % 10` rev=`expr $rev \* 10 + $r` n=`expr $n / 10` done