0% found this document useful (0 votes)
4 views

C PROGRAMMING PRACTICAL QUESTIONS

Uploaded by

ved2715anchhu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

C PROGRAMMING PRACTICAL QUESTIONS

Uploaded by

ved2715anchhu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q1) Write a program to print multiplication table vertically from 1 to n.

Q2) Program to count number of digits in an integer.


Q3 Program to find the first and last digit of a number.
Q4) Program to swap first and last digit of a number,
Q5) Program to find the sum of a digit in an integer.
Q6) Program to print a number in reverse.
Q7) Program to check whether a number is palindrome.
Q8) Program to find power of a number using loop.
Q9) Program to calculate the factorial of a number.
Q10) Program to check whether a number is Armstrong or not.
Q11) Program to print a pattern like pyramid using stars.
Q12) Program to print pattern like right angle triangle using numbers
incremented.
Q13) Program to print all unique elements in the array.
Q14) Program to find the reverse of an array.
Q15) Program to find the sum of diagonal elements of a matrix.
Q16) Program to count total number of negative elements in an array.
Q17) Program to print all prime numbers between given interval using functions.
Q18) Program to create a file and write contents, save and close the file.
Q19) Program to count characters, words and lines in a text file.
Q20) Program to check whether a number is even or odd using functions.

You might also like