We are given a table of Employee\'s salaries where there are three months of sal
ID: 1716508 • Letter: W
Question
We are given a table of Employee's salaries where there are three months of salary per employee. An accountant put the employees’ salary in the wrong order. They presently are in the following order. Empl #1 Salary of month #2/ Salary of month #3/ Salary of month #1, Empl #2 Salary of month #2/ Salary of month #3/ Salary of month #1... Empl #200 Salary of month #2/ Salary of month #3/ Salary of month #1. Write a program to assemble the salary table in the following order. Empl #1 Salary of month #1/ Salary of month #2/ Salary of month #3, Empl #2 Salary of month #1/ Salary of month #2/ Salary of month #3... Empl #200 Salary of month #1/ Salary of month #2/ Salary of month #1. Assume all salaries start at $1000(SRAM).
Explanation / Answer
#include <stdio.h>
#include<conio.h>
#include<arth.h>
void(main)
{
int i=200, n=3, $=60; [ i=emplyee no., n= salary months]
{
for(i=1; i<200; i++)
printf (" enter employee no.: %d, &i);
{
for (n=1; n<3; n++)
printf(" salary of month:%d, &n);
}
scanf("%d,%d, &i,&n");
}
}
end;