0% found this document useful (0 votes)
30 views3 pages

C Language Assignment

The document contains 28 questions related to C programming language concepts like pattern printing, arithmetic operations, conditional statements, loops, functions etc. It asks to write programs to perform tasks like inputting and calculating values, type checking, conditional execution and repetitive printing using loops. The questions cover basic as well as advanced C programming concepts and aim to help learn and practice writing programs to solve problems across different domains.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views3 pages

C Language Assignment

The document contains 28 questions related to C programming language concepts like pattern printing, arithmetic operations, conditional statements, loops, functions etc. It asks to write programs to perform tasks like inputting and calculating values, type checking, conditional execution and repetitive printing using loops. The questions cover basic as well as advanced C programming concepts and aim to help learn and practice writing programs to solve problems across different domains.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

C LANGUAGE ASSIGNMENT

(Q1)

WAP to print the following pattern:

INDIA

INDIA

INDIA

INDIA

(Q2)

WAP to input two numbers and print the sum.

(Q3)

WAP to input two numbers and print their subtraction.

(Q4)

WAP to input three numbers and print the product of those numbers.

(Q5)

WAP to print the average of four numbers.

(Q6)

WAP to input a number and find it's square.

(Q7)

WAP to enter two numbers and find their sum, difference and quotient and

print the output.

(Q8)

WAP enter salary of a person and find HRA,DA,PF.

HRA = 20% of salary.

DA = 15% of salary.

PF = 10% of salary.

OUTPUT:-

Salary =

HRA =

DA =

PF =

Net Salary =

FAME WORLD EDUCATIONAL HUB 3 Sr. Software Developer


Aishwarya Saxena
Salary in

hand =

(Q9)

WAP to print your name, class and city.

(Q10)

WAP to enter five subjects marks and calculate average and print them as

follows:-

OUTPUT:-

REPORT

**********

(1) Maths =

(2) English =

(3) Hindi =

(4) Computer =

(5) G.K. =

Average =

**********

(Q11)

WAP to input two numbers and print their remainder.

(Q12)

WAP to enter principal, rate, and time in years and find the simple interest.

(Q13)

WAP to enter time in seconds and convert it in minutes and seconds.

(Q14)

WAP to enter days and convert it into months and days.

(Q15)

WAP to input a number and print the 75% of that number.

(Q16)

WAP to calculate the area of a rectangle.

(Q17)

WAP to calculate the area of a circle.

FAME WORLD EDUCATIONAL HUB 3 Sr. Software Developer


Aishwarya Saxena
(Q18)

WAP to print the entered name three times on the screen on separate lines

using a single printing statement.

(Q19)

WAP to swap the values of two variables without using third variable.

(Q20)

WAP to swap the values of two variables using third variable.

IF..ELSE :-
(Q21)

WAP to print the larger number between two numbers.

(Q22)

WAP to print the largest number among three numbers.

(Q23)

WAP to input a character and check whether it is a vowel or consonant.

(Q24)

WAP to input a character and tell the type of the vowel.

(Q25)

WAP to input a number between 1 to 7 and print days name.

(Q26)

WAP to find whether a year is leap year or not.

(Q27)

WAP to check whether a number is even or odd.

(Q28)

WAP to check whether a person is eligible for voting or not.

LOOPING:

(Q1) WAP to print 1 to 10 number .(using for,while,do-while)

(Q2) WAP to print INDIA 10 times . (using for,while,do-while)

(Q3) WAP to print 10 numbers in reverse order with a difference of 2 (using

for, while).

(Q4) WAP to input a number and print factorial of a number.

FAME WORLD EDUCATIONAL HUB 3 Sr. Software Developer


Aishwarya Saxena

You might also like