Professional Documents
Culture Documents
Act2 Final
Act2 Final
#include<iostream>
int main()
float a,b,p;
cin>>a;
cin>>b;
p=(b/a)*100;
if(p>=75)
else
return 0;
1. First, the input for held classes and attended classes is taken from the user in the first two lines.
2. After that, the percentage is calculated in the third line.
3. Finally, the percentage is being checked for less than 75 or not, and the statement is printed
accordingly.