7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
2211Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
14574-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
TCS,
1718Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
1402Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.
1433Problem 6: Area of a trapezoid can be calculated by the following formula: A=(b1 b2)×h2 where b1 and b2 are the parallel sides or the bases and h is length of height Write a C code of this program
1572
What is the difference wordpress.com vs wordpress.org?
How do I use python idle?
List the databases supported by codeigniter?
Explain how can I read and write comma-delimited text?
How to add / link an images/css/javascript from a view in ci?
What are the advantages of using typedef in a program?
How can you enable query log in laravel?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is data type set in python and how to work with it?
Is python good for beginners?
Why does notstrcat(string, "!");Work?
How does python input work?
How do I display php errors?
What is encapsulation in oop?
What is extern storage class in c?