#include <iostream.h>
#include <math.h>
void main ()
{
int n,j,q,d,h,t,i,m,f,b;
cout<<" num of eng";
cin >> j;
q=0;
d=0;
h=0;
t=0;
for (i=1;i<=j;i++)
{cout<< "insert Salary ";
cin>> m;
m /(22) =d;
d/(8) = h;
cout<<"\n Leave ";
cin>>f;
cout<< "\n Attend ";
cin >> b;
f - b = t;
t * h = q;
cout<<"q="<<q;
}
}
blueman:-0
0
Newbie Poster
Recommended Answers
Jump to Postm /(22) =d; d/(8) = h;
These don't work. You need a single variable on the left. Do whatever algebra you need to to accomplish this:
m =d * 22; d = h * 8;
or if you are trying to do …
All 4 Replies
VernonDozier
2,218
Posting Expert
Featured Poster
hag++
24
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
mrnutty
761
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.