// Student attendence #include <iostream> #include <string> #include <conio.h> #include <limits> using namespace std; int main () { cout<<"Enter Attendance for CP : "; int cptotal; for(int i=0;i<31;i++){ cin>>cptotal; if(cptotal==1) cptotal=cptotal+1; } cout<<cptotal; } return 0; }
cin>>cptotal
cptotal
cptotal=cptotal+1;
++cptotal
cptotal++
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)