You are on page 1of 7

#include<stdio.

h>

#include<conio.h>

#include<string.h>

main()

char a[100];

int i,j,k,l;

system("color f2");

printf("Enter a word: ");

gets(a);

l=strlen(a);

k=l/2;

a[100]='\0';

for (j=0;j<k;j++)

if (a[j] != a[l-1])

printf("\n\nnot a pallinndrome");

break;

}
else

{ printf("\n\npallinndrome");

break;

getch();

}
SL no. Name Page no

1. Write a program to solve quadratic equation 06

2. Write a program to solve equation: 07


𝑎1 x+𝑏1 y=𝑐1
𝑎2 x+𝑏2 y=𝑐2

3. Write a program to solve equations of three variables: 09


𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑘1
𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑘2
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑘3

4. Take two integers; write a program to 13


determine which one is greater.

5. Write a program to determine if a number is odd or even 15

6. Write a program to publish grade of one subject from 16


the following percentage of number.
Percentage of number Grade

Below 40% F
40% to below 60% B

60% to below 80% A

80% and above A+

7. Take three integers; write a program to show 18


them in descending or ascending order based
on their values.

8. Write a program to publish grade of five 20


subject from the following percentage of
number.
Percentage of number Grade

Below 40% F
40% to below 60% B

60% to below 80% A

80% and above A+

9. Write a program to determine if a year is leap year 23


or not.

10. Write a program to determine the sum of 25


1+2+3+…………+100

11. Write a program to determine if the number is 26


prime or not.

12. Write a program to take the input of the elements of a 27


matrix from user and show it in output

13. Write a program to make the sum of the two 29


matrix A & B.
1 2 3 3 3 4
A = [4 5 6 ] & B= [2 5 6]
7 8 9 2 4 3

14. Write a program to take the input of two matrices and 32


make sum of the two matrices.
15. Write a program make multiplication of the two 35
matrices.
1 2 2 3 4
A= [ ] &B=[ ]
3 4 5 6 7

16. Write a program to take the input of two 38


matrices and make multiplication of the two
matrices.

17. Write a program to take the input of a matrix 41


and make transpose of that matrix.

18. Write a program to make mathematical 44


operations on user choice.

19. Write a program to find a character vowel or 46


consonant.

20. Write a program to take the input of 48


temperatures, find minimum and maximum
and average of temperatures.

21. Write a program to find the ASCII value of a 50


character.

22. Write a program to find the capital of a 51


country.

23. Write a program to find the average marks of 53


user defined number of students.

24. Write a program to find if a word is palindrome 55


or not.

25. Write a program to show the numbers in 57


ascending orders.

26. Write a program to find the GCD and LCM of 59


two integers.
27. Write a program to find the factorial of a 61
number.

28. Write a program to find the reverse of a 62


number.

29. Write a program to build a pyramid of stars. 63

30. Write a program to build a pyramid of stars in 65


reverse order .

31. Write a program to build a pyramid of 66


numbers.

32. Write a program to build a pyramid of numbers 67


in reverse pattern.

33. Write a program to build floyd’s triangle. 69

You might also like