C Lab Assignment 1
C Lab Assignment 1
(11) Write a C Program to print the first letter of your name using
special character.
(18) Write a C Program to input any Small letter and display it with
capital letter.
(19) Write a C Program to input three digits number from user and
calculate sum of first and last numbers.
(Hint : I/p : 358 O/p :11)
(20) Write a C Program to input three digits number from user and
display square of first and last numbers.
(Hint : I/p : 358 O/p : Square of 3 is 9 and Square of 8 is 64)
(23) Write a C Program to input your birth day, month and year in
numeric format and display total days as a output.
(24) Write a C Program to input two digits number from user and
display with reverse number on screen (Hint : I/P : 32 O/P : 23)
If statement programs
(5) Write a C Program to check whether the enter year is leap year
or not.
(8) Writer a C Program to enter any character from user and if that
character is capital letter then display it with small letter on
screen and if enter character is small letter then display with
Capital letter.
(9) Write a C Program to input any value from user and check that
the enter value is Capital letter, Small letter, digit or special
symbol.
(14) Write a C Program to read any single character from user and
check whether that character is number or not using conditional
operator.
(17) Write a C Program to read any character from user and check
whether that character is vowel or not. using conditional operator.
(a,e,i,o,u character are called vowel)
(11) WAP to input any number from user and displays the total of
its digits ( e.g . I/p : 321 o/p : 6)
(12) WAP to input any number from user and check whether that
number is Armstrong number or not.
*
* *
*
* * *
*
*
* * *
* * * *
* *
(5) (6)
* * * * * *
*
*
*
*
*
*
* * * * * * * * *
*
* * * *
* * * * *
* * * *
* * * *
* * ** * *
*
Note : Write a program of following triangle with different shapes
** * *
* ** ***** ** *
like program (1) To (6).
(7) * (8)
* * * *
1 1 2 3 4 5
1 2 1 2 3 4
1 2 3 1 2 3
1
1
2 3 4
2 3 4 5 * 1
1 *
2
* * *
(9) (10)
1 5 5 5 5 5
2 2 4 4 4 4
3 3 3 3 3 3
4 4 4 4 2 2
5 5 5 5 5 1
(11) (12)
A A B C D E
A B A B C D
A B C A B C
A B C D A B
A B C D E A
1 1
0 1 2 3
1 0 1 4 5 6
0 1 0 1 7 8 9 10
1 0 1 0 1 11 12 13 14 15