0% found this document useful (0 votes)
3 views6 pages

PIC Assignment 1 220463

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 6

Programming in C Assignment

Name:-Deepak Yadav
Roll No:- 220463
Q.1:- program to Display only a number if user enters Negative
Number.
OUTPUT:

Q.2:- Program To check whether the given number is Even Or Odd.


OUTPUT:
Q.3:- Program which will Check whether entered Char is an Alphabet
or Special Char
OUTPUT:

Q.4:- Program to Check Whether the Entered Year is leap Year or Not
OUTPUT:-
Q.5:- Program to Find Largest among Three Numbers.(Using nested if
else statement)
OUTPUT:

Q.6:- Program to find Largest among three numbers.(Using if else


Statement)
OUTPUT:
Q.7:- Program to find Largest among Four Numbers.(Using nested if
else Statement)
OUTPUT:

Q.8:- Program to Find largest among Four Numbers.(Using if else


Statement)
OUTPUT:
Q.9:- Program which will take Username and Password as input and
Print whether the username and Password is Correct or Not.
OUTPUT:

Q.10:- Program to find Sum Of all Odd Numbers between 1 to 20


OUTPUT:
Q.11: Program Which will print the Gross Salary of an employee if
basic salary from the keyboard and HRA=10% of basic salary, DA=15%
of basic salary and TA=500 if basic salary>10000 , HRA=2000, DA=7%
of basic salary and TA=1% of basic salary
OUTPUT:

Q.12:- Program Which will take Input as an amount in Rupees amd


print the possible number of notes available in that amount.
OUTPUT:

You might also like