fork(1) download
  1. #include <stdio.h>
  2. main()
  3. {
  4. int hour;
  5. float salary=0,bonus,netsalary;
  6. char name;
  7. printf("Name : ",scanf("%s",&name));
  8. printf("Hour : ", scanf("%d",&hour));
  9. salary=hour*80;
  10. printf("salary %d",salary);
  11. }
Success #stdin #stdout 0s 5288KB
stdin
Vasa.
10
11
stdout
Name  :  Hour  :  salary 0