fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. float a,b,c;
  6. cout<<"Enter first number\n";
  7. cin>>a;
  8. cout<<"Enter second number\n";
  9. cin>>b;
  10. c=a/b;
  11. cout<<"Div="<<c;
  12. }
Success #stdin #stdout 0s 4180KB
stdin
Standard input is empty
stdout
Enter first number
Enter second number
Div=-nan