Vedanti has Published 8 Answers

Write PHP Program To Print Sum Of Digits

Updated on 20-Jan-2023 21:11:30

PHP Program To Print Sum Of Digits : The below program gives the sum of two variables x and y. The PHP echo statement is used to output the text and sum value to the screen. In a similar way, codes can be written to get a sum of multiple variables in PHP. Example <!DOCTYPE html> <html> <body>   <?php $txt1 = "Sum of x and y is:"; $x = 1234; $y = 4321;   echo "<h3>" . $txt1 . "</h3>"; echo $x + $y; ?>   </body... Read More

How to create a table in SQL ?

Updated on 12-Dec-2021 20:35:52

The command to create a table in sql is extremely simple: CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 datatype, .... ); We will start off by giving the keywords, CREATE TABLE, then we will give the name of the table. After that in braces, we will list out all the columns along with their datatypes. For example, if we want to create a simple employee table: CREATE TABLE employee ( name varchar(25), age int, gender varchar(25), .... ); ... Read More

What is SQL ?

Updated on 12-Dec-2021 20:35:18

SQL stands for Structured Query Language. It is the primary language to interact with databases. With the help of SQL, we can extract data from a database, modify this data and also update it whenever there is a requirement. This query language is evergreen and is widely used across industries. For example, if a company has records of all the details of their employees in the database. With the help of SQL, all of this data can be queried to find out valuable insights in a short span of time... Read More

Write C program to find Exponent Power Series

Updated on 12-Dec-2021 20:35:06

Program : A program to evaluate the power series x2 x3 xn ex = 1 + x + --- + --- + ..... + ---- 2! 3! n! , 0 < x < 1 It uses if……else to test the accuracy. The power series contains the recurrence relationship of the type Tn = Tn-1 (---) for n > 1 T1 = x for n = 1 T0 = 1 If Tn-1 (usually known as previous term) is known, then Tn (known as present term) can be easily found by multiplying the previous ter... Read More

Write a ‘C’ Program to compute the sum of all elements stored in an array using pointers

Updated on 12-Dec-2021 20:35:39

C Program to compute sum of the array elements using pointers Program : #include <stdio.h> #include <conio.h> void main() { int numArray[10]; int i, sum = 0; int *ptr; printf("\nEnter 10 elements : "); for (i = 0; i < 10; i++) scanf("%d", &numArray[i]); ptr = numArray; /* a=&a[0] */ for (i = 0; i < 10; i++) { sum = sum + *ptr; ptr++; } printf("The sum of array elements : %d", sum); } Outpu... Read More

“My WordPress Blog Got Hacked!” – Prevent it!

Updated on 01-Nov-2021 9:07:09

“My WordPress Blog Got Hacked” is something that we as a hosting company hear all the time, which is unfortunate. What’s even more unfortunate is we as the web hosting provider often get blamed for it by our very own customers. I can’t really blame our customers for this either, I guess they just don’t know it can happen — So hopefully, this blog post will help bring some awareness and help prevent their blogs from being hacked. It’s not uncommon for a WordPress site to get expl... Read More

See (stage) your website before switching your DNS

Updated on 01-Nov-2021 9:06:42

When customers are looking to switch hosting providers, they usually stage the setup of their web site before completely switching the DNS (domain name servers). We provide you with a temporary URL so that you can see how your site will look before you switch your domain’s DNS. The problem comes when some scripts require you to access the script through a valid domain name. This poses an issue because you haven’t switched the domain’s DNS and don’t want to until you know the script works... Read More

How can we create recursive functions in Python?

Updated on 30-Oct-2021 14:38:44

Recursion is a programming method, in which a function calls itself one or more times in its body. Usually, it is returning the return value of this function call. If a function definition follows recursion, we call this function a recursive function. Also Read : How to get a list of parameter names inside Python function? A recursive function has to terminate to be used in a program. It terminates, if with every recursive call the solution of the problem is becomes smaller and moves towards ... Read More