Taru exam is on the head. So she started learning physics. There she learned about Pascal's law. Now she wanted to try an experiment to get a better understanding of the same.
For, the experiment Taru has N buckets (numbered from 1,2,3...N) which all are initially empty.
She has M number of queries. Each query represents an integer that is of 4 types.
You have to return the number of buckets that are filled after performing M queries.
Mr. Umar while performing some operations comes to know that the image that he wants can be obtained by multiplying the original image with the pattern. Help Mr. Umar to get the resultant image by performing the matrix multiplication.
Write a c program for finding the roots of the quadratic equation using conditional operator
n an organization they decide to give bonus to all the employees on New Year. A 5%
bonus on salary is given to the grade A workers and 10% bonus on salary to the grade
B workers. Write a program to enter the salary and grade of the employee. If the
salary of the employee is less than $10,000 then the employee gets an extra 2% bonus
on salary Calculate the bonus that has to be given to the employee and print the salary
Input of number of numbers: 3
Input number 1: 4
Input number 2: 2
Input number 3: 1
Select Number System: 1
[1] Binary
[2] Octal
[3] Hexadecimal
Select operators: A
[A] Addition
[B] Subtraction
[C] Multiplication
[D] Division
The numbers are: 4, 2, 1
The number system is: Binary
The converted number is/are: 0100, 0010, 0001
The operator is: addition
Do you want to try again? (y/n)? y
A c program to fill an N x N two-dimensional array, in a circular (Spiral) pattern. The numbers to be filled increments by 1.
A c program that carries out binary search of an element entered by the user in an array of elements and then displace the location of that element else if not found it displace element not found.
A c program that generates the Pascal's triangle.
Create a C program that creates a 4x4 2d array, fill it with user-defined values and display (separately) the sum of the diagonal as well as the upper and lower triangular elements.
d ut ut ut
Lt d ut ut
Lt Lt d ut
Lt Lt Lt d
where:
ut=upper triangular
Lt=lower triangular
d=diagonal elements
using switch case print the grade of the student