1
|
Any integer is input by the user. Write a program to find out
whether it is an odd number or even number. solution
|
||||||||||
2
|
|||||||||||
3
|
Write a program to calculate the total expenses. Quantity and
price per item are input by the user and discount of 10% is offered if the
expense is more than 5000. solution
|
||||||||||
4
|
Write a program to determine whether the seller has made profit
or incurred loss. Also determine how much profit he made or loss he incurred.
Cost price and selling price of an item is input by the user.solution
|
||||||||||
5
|
If the ages of Ram, Sulabh and Ajay are input by the user, write
a program to determine the youngest of the three. solution
|
||||||||||
6
|
Write a program to check whether a triangle is valid or not,
when the three angles of the triangle are entered by the user. A triangle is
valid if the sum of all the three angles is equal to 180 degrees. solution
|
||||||||||
7
|
Any year is input by the user. Write a program to determine
whether the year is a leap year or not. solution
|
||||||||||
8
|
In a company an employee is paid as under:
If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary. solution |
||||||||||
9
|
Write a program to calculate the monthly telephone bills as per
the following rule:
Minimum Rs. 200 for upto 100 calls. Plus Rs. 0.60 per call for next 50 calls. Plus Rs. 0.50 per call for next 50 calls. Plus Rs. 0.40 per call for any call beyond 200 calls. solution |
||||||||||
10
|
Write a program to find the roots of and quadratic equation of
type ax2+bx+c where a is not equal to zero. solution
|
||||||||||
11
|
The marks obtained by a student in 5 different subjects are
input by the user. The student gets a division as per the following rules:
Percentage above or equal to 60 - First division Percentage between 50 and 59 - Second division Percentage between 40 and 49 - Third division Percentage less than 40 - Fail Write a program to calculate the division obtained by the student.solution |
||||||||||
12
|
Any
character is entered by the user; write a program to determine whether the
character entered is a capital letter, a small case letter, a digit or a
special symbol. The following table shows the range of ASCII values for
various characters.
|
- Home
- C Programming
- _Algorithm & Flow Chart in C
- _Introduction to C
- _Control Statement & Looping
- _Function in C
- _Array in C
- _Pointer in C
- _Structure & Union in C
- _List of C Programs
- __Tricky Programs
- __Pattern in C
- _C Compiler
- _C Programming हिंदी में (Videos के साथ)
- C++ Programming
- _List of C++ Programs
- _C/C++ Questions
- _Minor Project 2021-22
- Projects
- App. Physics
- _Assignment 1 (2023-24)
- _Assignment 2 (2023-24)
- _Assignment 3 (2023-24)
- _AP Assignment 2
- _AP Assignment 3
- _Assignment No.2.1
- _Assignment No. 2.2
- _Office Automation & Tools
- _Introduce Yourself
- Online Exams
- _Online Attendance
- _Interview Questions
- _Youtube Channel
- More Tutorials
- _UPBTE Links
- _URISE
- _Internal Marks
- _Enrolment No
- _More Tutorials