Quick actions

cmd+k|ctrl+k

Navigation

Languages

bilhnevich lab 2 (46)

Snippet info

Language

Cpp

Visibility

public

Author

bikhnevichk

Created

2018-10-08T22:08:16Z

Updated

2018-10-08T22:08:16Z

#include <iostream>
#include <cmath> 
using namespace std;

int main() {
    cout << "enter x\n";
    float x ;
    cin >> x;
     if(x>0 , x+1>0){
         cout << "2x+1="    << 2*x + 1 ;
     }else{
        cout << "no solutions" ;
     }
    
    return 0;
}
INFO