Question: Assignment 0 This assignment is NOT graded but is required to make sure students completed the Lab tutorials and are able to use SageMath and
Assignment
This assignment is NOT graded but is required to make sure students completed the Lab tutorials
and are able to use SageMath and C Once this tutorial is completed, students are expected to have
understood how to run C in Linux and use SageMath. Report your results in one file and submit to
Canvas. Include your name, Znumber, and assignment number in the assignment.
Part : Run the following code in C Set first value as first digits of your Znumber and the second
value as last digits of your Znumber. Report the output.
#include
int main
int n n i gcd;
printfEnter two integers: ;
scanfd d &n &n;
fori; i n && i n; i
ifni && ni
gcd i;
printfGCD of d and d is d
n n gcd;
return ;
Part : Run the following function in SageMath replacing value and value with the values
mentioned in part Report the output and verify the results from part are correct.
n value
n value
gcdn n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
