Write this program using C standard library. Please comment on the code so i can
ID: 662254 • Letter: W
Question
Write this program using C standard library. Please comment on the code so i can understand it, thanks!! I added sample inputs and outpits.
For the first assignment I want you to use the concepts that we have learned so far. Printf, Scanf, Conditionals, and Operators. The first part is to do some fraction math. I want you to have the user input 2 different fractions. Each fraction will be input in the form of "a/b" where a and b are both positive integers. For each fraction you will store them in 2 integers (numerator and denominator).Explanation / Answer
Answer
#include<stdio.h>
int lcm(int,int);
void main()
{
int NM,NM1,DN1,NM2,DN2,LCM,den,num,gpa;
float approx;
clrscr();
printf(
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.