Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB Solve the following problems in matlab: Using for loop and while loop their sum. 1. Write a matlab program to find the sum of

MATLAB image text in transcribed
Solve the following problems in matlab: Using for loop and while loop their sum. 1. Write a matlab program to find the sum of first 10 natural numbers? 2. Write a matlab program to read 10 numbers from keyboard and find their sum and average 3. Write a matlab program to display the n terms of odd natural number and 4. Write a matlab program to display the cube of the number up to given an Integer. 5. Write a matlab program to display the pattern like right angle triangle using an asterisk Your output: Humber of Rous--->> 6. Write a matlab program to display the pattern like night angle triangle with a number Your output: Enter the rows--->5 1 12 123 1234 12345 7. Write a matlab program to calculate the factorial of a given number. 8. Write a matlab program to display the n terms of square natural number and their sum. Your output: Input the number of terms: 5 Expected Output: The square natural upto 5 terms are :1 4 9 16 25 The Sum of Square Natural Number upto 5 terms = 55 10. 9. Write a matlab program which prints numbers 1 to 10 using while loop. Write a matlab program to print ODD numbers from 1 to N using while loop Write a matlab program to read an integer and print its multiplication table using while loop 11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

62 Potential violent behavior and workplace violence conditions.

Answered: 1 week ago