Count v c++ i am trying


SUBMITTED BY: Maxmaro

DATE: March 8, 2021, 4:54 p.m.

FORMAT: Text only

SIZE: 331 Bytes

HITS: 2380

  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,c;
  6. cout<<"tell one side\n";
  7. cin>>a;
  8. cout<<"tell second side\n";
  9. cin>>b;
  10. cout<<"tell third side\n";
  11. cin>>c;
  12. if(a>0 && b>0 && c > 1)
  13. {
  14. cout<<"V = a*b*c = ";
  15. cout<< a*b*c;
  16. }
  17. else
  18. {
  19. cout<<"Side can't be lower than 1";
  20. }
  21. }

comments powered by Disqus