fork(1) download
  1. #include<iostream>
  2.  
  3. using namespace std;
  4. int main(){
  5.  
  6. //x = 6 Make a note inside a program
  7. //y = 4
  8. //x + y = 10
  9. /*
  10.   This is a multiline
  11.   comment
  12.   */
  13.  
  14.  
  15. float numberOfStudents = 6;
  16. float classSize = 31;
  17.  
  18. float percentInvolved = (numberOfStudents/classSize)*100; // Camelback Notation
  19.  
  20. cout << "The percentage of students involved in this fight was: " << percentInvolved << "%"<<endl;
  21.  
  22.  
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
The percentage of students involved in this fight was: 19.3548%