below is my current code. What I need to do now is to print columns where I1 is in the first column and I2 in the second and both need to have a range of corresponding values. For example, row 1 will have a value for I1 and I2 given that the user input values for R1 and R2. I need a tables with n number of rows given the user can choose the value n
// Lab 3
#include "stdio.h"
#include "math.h"
int main(int arg)
{
int I1;
int I2;
int I3;
int R2;
int R3;
int N;
//power dissipation is r^2*I
;printf("Enter the initial current in Amps:");
scanf("%d",&I1);
;printf("Enter R2 in ohms:");
scanf("%d",&R2);
;printf("Enter R3 in ohms:");
scanf("%d",&R3);
;printf("Enter the number of entries:");
scanf("%d",&N);
I2 = R3/(R2+R3)*I1;
printf("The value of I2 is : %lf\n",I2);
I3 = (R2/(R2+R3))*I1;
printf("The value of I3 is : %lf\n",I3);
;return 0;
}