Computer Science

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • 25 Mar, 2021
  • 0 Comments
  • 36 Secs Read

Computer Science

Paper details  

I am sharing with you three codes:
a) Ruby-the code calculates the sum of first n natural numbers
b) Fortran-code calculates factorial of a number
c) C++-code calculates sum of first n natural numbers

Your assigment:
a) In Ruby by using user input, until and do loop your code will calculate the factorial of the number that the user has input
b) In Fortran by using user input, and while loop your code will calculate the sum of natural numbers until the number that the user has input
d) In C++ by using user input, until and do loop your code will calculate the factorial of the number that the user has input.

Your code should have comments.

Leave a Reply

Your email address will not be published. Required fields are marked *