Toggle navigation
Home
India
States
Languages
Politics
Historical Monuments
Freedom Fighters
Independence Day
Scientists
Transportations
Imports and Exports
Agriculture
Army
Indian Presidents
World
Major Countries
Geographical Info
Richest Persons
Inspired Persons
Scientists
Wonders
Currency
Sports
Emblems
Tutorials
HTML
CSS
C-Language
Java
Java Script
PHP
Python
SQL
React Native
Pricing
Contests
Explore
PHP
</> PHP Tutorial
Introduction
Variables
If...Else
Switch
Loops
Arrays
Strings
Functions
200 Programmes
01 - 50
51 - 100
101 - 150
151 - 200
Practicals
ATM
Powerbill
PHP - Questions
1 - 50 Tasks
51 - 100 Tasks
1.
Write a program to add and subtract two numbers?
2.
Write a program to multiply and divide two numbers and print them in the form of equation (4*3=12 8/4=2)?
3.
Write a program to find the square and cube of a given number?
4.
Write a program to find the square root of a given number (use sqrt () function)?
5.
Write a program to find the area and perimeter of a square?
6.
Write a program to find the area and circumference of a circle?
7.
Write a program to find the area of a sphere?
8.
Write a program to find the volume of a cylinder?
9.
Write a program to find the your age in days?
10.
Write a program to find the simple interest and compound interest?
11.
The total mechanical energy of a particle is given by e=mgh+(1/2) mv^2?
12.
Write a program to convert the given seconds into hours–minutes–seconds?
13.
A milk vendor buys milk at the rate of 3.25/- the then adds a liter of water for every 4 liters of milk and sells the water milk at the rate of 4.15/1t. calculate the gain for milk vendor?
14.
The temperature of the city is input through the keyboard in Fahrenheit. Write a program to convert into Celsius?
15.
Two numbers are input into two locations ‘a’ and ‘b’ Write a program to interchange the contents of ‘a’ and ‘b’ without using temporary variables?
16.
Given the coordinates of two points (x1,y1) and (x2,y2). Write a program to find the distance between these two points?
17.
Rajesh’s basic salary is input through the keyboard. His D.A. is 40% of basic salary, and H.R.A. is 20% of basic salary. Write a program to calculate his gross salary?
18.
The distance between two cities in Km. is input through the keyboard. Write a program to convert and print the result in meters and centimeters?
19.
Write a program which accepts the amount in dollars and convert into rupees?
20.
Write a program to read your address and print it?
21.
Write a program to print the area of triangle if b and h values are given?
22.
Write a program to print the area of triangle if three sides are given?
23.
Write a program to read the marks of 3 subjects and display the total, avg, class?
24.
Write a program to check whether the given number is positive or negative?
25.
Write a program to find out the given number is odd or even?
26.
Write a program to find smallest of given two numbers?
27.
Write a program to find biggest of given three numbers?
28.
Write a program to check whether the given year is leap year or not?
29.
Write a program to find the roots of a given quadratic equation and print the nature of roots?
30.
Write a program to read ten numbers and print their sum by using ’if’ statement
31.
Write a program to read three sides a,b,c of a triangle and print the type of the triangle?
Right angled triangle(a*a)+(b*b)==(c*c)||(b*b)+(c*c)==(a*a)|| (c*c)+(a*a)==(b*b)
Equilateral triangle(a==b) && (b==c)
Isosceles triangle(a==b) || (b==c) || (c==a)
Scalene(a!=b&&b1=c && c!=a)
32.
Write a program to calculate the monthly income of a person using the following commission schedule:
(use ‘if-else-if’ statement).
Monthly sales income.
>=Rs. 50,000Rs. 375+16% Sales.
>=Rs. 50,000 but>=Rs. 40,000 Rs. 370+14% Sales
>=Rs. 40,000 but>=Rs. 30,000 Rs. 325+12% Sales
>=Rs. 30,000 but>=Rs. 20,000 Rs. 300+9% Sales
>=Rs. 20,000 but>=Rs. 10,000 Rs. 250+5% Sales
>=Rs. 10,000/- Rs. 200+3% Sales
33.
Write a program to read a 3 digit number and find whether the middle digit is numerically equal to the sum of the other Two digits and prints an appropriate response?
34.
A company insures its drivers in the following cases
1. If the driver is married
2. If the driver is unmarried, male and above 30 years of age
3. If the driver is unmarried, female and above 25 years of age
In all other cases, the driver is not insured. If the marital status, sex, age of the driver are the inputs,
write a program to determine whether the driver is insured or not.
(use ‘nested-if’).
35.
Write a program to read the characters and find out whether it is uppercase or lowercase?
36.
Write a program to print the uppercase letter of a given lowercase?
37.
Write a program to check whether the given input is digit or lowercase character or uppercase character or a special character (use ‘if-else-if’ ladder)?
38.
Write a program to check whether the given input is digit or lowercase character or uppercase character or a special character using Switch case?
39.
Write a program to read a vowel character and print any appropriate word by using “Switch case”?
40.
Write a program to find the biggest number among 2 numbers by using switch case?
41.
Write a program to emulated a four function calculator which can perform addition, subtraction multiplication and Division. Program should read two real numbers and an operator which tells the operation to the performed. Do it by using Case?
42.
Write a program to read a number and print how many number of 500, 100, 20, 10, 5, 2, 1 notes are available in the given Amount by using case?
43.
Write a program to read your name and print it ‘n’ times?
44.
Write a program to find whether the given numbers existing in an array or not?
45.
Write a program to find the sum of ‘n’ natural numbers?
46.
Write a program to find the sum of ‘n’ distinct numbers?
47.
Write a program to find the sum of even ‘n’ natural numbers?
48.
Write a program to remove the duplicate elements from array?
49.
Write a program to display the numbers sequentially from 1 to 99 with 5 numbers on each line?
50.
Write a program to display the numbers sequentially from 1 to 99 with 5 numbers on each column?
<< Previous
Next >>