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
C Language
</> C Tutorial
Introduction
Variables
Input&Output
Operators
If...Else
Switch
Loops
Arrays
Strings
Structures
Unions
Functions
Pointers
Files
200 Programmes
01 - 50
51 - 100
101 - 150
151 - 200
Practicals
100 Logic
Permutation
Lottery
ATM
Powerbill
Markslist
Taxi
Job
Finance
Farmer
Pharmacy
C - 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 simple interest and compound interest ?
10.
The total mechanical energy of a particle is given by e=mgh+1/2 mv2 ?
11.
Write a program to convert the given seconds into hours – minutes –seconds ?
12.
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?
13.
The temperature of the city is input through the keyboard in Fahrenheit. Write a program to convert into Celsius ?
14.
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 ?
15.
Given the coordinates of two points (x1,y1) and (x2,y2). Write a program to find the distance between these two points ?
16.
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 ?
17.
The distance between two cities in kill meters is input through the keyboard. Write a program to convert and print the result in meters and centimeters ?
18.
A program which accepts the amount in dollars and convert into rupees ?
19.
Write a program to read your address and print it ?
20.
Write a program to print the area of triangle if b and h values are given ?
21.
Write a program to print the area of triangle if three sides are given ?
22.
Write a program to read the marks of 3 subjects and display the total, avg ?
23.
Write a program to check whether the given number is positive or negative ?
24.
Write a program to find out the given number is odd or even ?
25.
Write a program to find smallest of given two numbers ?
26.
Write a program to find biggest of given three numbers ?
27.
Write a program to check whether the given year is leap year or not ?
28.
Write a program to find the roots of a given quadratic equation and print the nature of roots ?
29.
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) ?
30.
Write a program to calculate the monthly income of a person using the following commission schedule:
(use ‘if-else-if’ statement).
Monthly sales income br>>=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 br>
31.
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 ?
32.
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’).
33.
Write a program to read the characters and find out whether it is uppercase or lowercase ?
34.
Write a program to print the uppercase letter of a given lowercase ?
35.
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) ?
36.
Write a program to check whether the given input is digit or lowercase character or uppercase character or a special character using Switch case ?
37.
Write a program to read a vowel character and print any appropriate word by using “Switch case” ?
38.
Write a program to find the biggest number among 2 numbers by using switch case ?
39.
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 ?
40.
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 ?
41.
Write a program to read your name and print it ‘n’ times ?
42.
Write a program to find whether the given numbers existing in an array or not ?
43.
Write a program to find the sum of ‘n’ natural numbers ?
44.
Write a program to find the sum of even ‘n’ natural numbers ?
45.
Write a program to remove the duplicate number from array ?
46.
Write a program to display the numbers sequentially from 1 to 99 with 5 numbers on each line ?
47.
Write a program to display the numbers sequentially from 1 to 99 with 5 numbers on each column ?
48.
Write a program to read 9 elements and print the array elements in 3x3 matrix format ?
49.
Write a program to display the multiplication table for a given number ?
50.
Write a program to find the biggest of the given numbers ?
<< Previous
Next >>