Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- char name[50];
- float sallery;
- float EPF;
- float tax;
- float net;
- cout << "Enter student name : ";
- cin >> name;
- cout << "Enter the sallery : ";
- cin >> sallery;
- if(sallery <= 3000)
- {
- EPF = sallery * 0;
- tax = sallery * 0.03;
- }
- else if(sallery > 3000)
- {
- EPF = sallery * 0.04;
- tax = sallery * 0.05;
- }
- net = sallery - EPF - tax;
- cout << "tatal sallery = " << net;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement