Skip to content

Instantly share code, notes, and snippets.

@Levik
Created March 6, 2011 10:39
Show Gist options
  • Save Levik/857193 to your computer and use it in GitHub Desktop.
Save Levik/857193 to your computer and use it in GitHub Desktop.
lab1.2
#include <stdio.h>
#include <iostream>
#include <conio.h>
#include <cmath>
using namespace std;
void main()
{
double n,res;
cout<<"Enter n: ";
cin>>n;
res=pow(3,n)-4*n+n-sqrt(fabs(n));
cout<<"Result: "<<res;
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment