model lab 1
model lab 1
model lab 1
Print whether a string’s length is odd or even without using in-built function
Write a C program to print the following pattern
A
AB
ABC
ABCD
ABCDE
3. You are given with Principle amount($), Interest Rate(%) and Time (years) in that order. Find
Simple Interest.
Write a program to calculate the sum of n natural numbers
Write a C program to check whether a given password is valid or not. A valid password must satisfy the
following conditions i) Length of the string must be greater than 8 ii) There must be atleast 1 special
character, 1 uppercase alphabet, 1 lower case alphabet and 1 digit
4. Write a program given the edge of the dodecahedron calculate its Volume. Volume is the amount
of the space which the shapes takes up.
Volume = (15 + 7√5)/4 * e3
Write a C program for the below scenario:
A company insures its driver in the following cases
I. If the driver is married or
II. If the driver is unmarried, male & above 30 years of age or
III. If the driver is unmarried, female & above 25 years of age.
Write a C program to find whether two arrays are same using one-dimensional arrays.
5. Write a program to read an uppercase character from standard input and to convert it into its
corresponding lowercase character
Write a C program to print the prime numbers up to n
Write a program to find given an array arr[] of size n. Numbers are from 1 to (n-1) in random order.
The array has only one repetitive element. We need to find the repetitive element.
7. Write a C program to input month number and print number of days in that month.
Write a program to print the following pattern
****
***
**
*
Write a C program to find total number of vowels and consonants in a string using loop and if else.
Note:
celsius = (5 / 9) * (fahrenheit - 32)
Get a and b from the user and find the value of a power b without using pow()
Write a C program to find the second largest and second smallest number in a given array