Create a source code that will prompt for recive and total a collection of payroll amounts entered at the terminal untill a sentinel amount of 999 is entered. Here is what i have so far i know not much but am not that great at this class.

#include <stdio.h>
#include <stdlib.h>

main()

{

int total payroll amounts;
float 0;

printf("Enter a number(999 to stop)");
scanf("%d" , &num);

//*putting the first number the user entered

while(num=999)
{