Pl.cpp:39:7: error: non-ASCII characters are not allowed outside of literals and identifiers
cout<<‘enter l : ‘
Pl.cpp:39:10: error: use of undeclared identifier 'enter'
cout<<‘enter l : ‘
^
same for all cout.
I am using text editor in Yosemite.
#include<iostream>
#include<cmath>
using namespace std;
int factorial(int n)
{
int f = 1;
for (int i = n; i > 0; i--)
{
f = f * i;
}
return f;
}
float Pl1(int a, int b, float c)
{
float d,e;
if (a-b==1||a==b)
I'm guessing you did copy & paste with this. If so, you didn't get pure text in your copy & paste operation, you've got some non ascii characters in there. What looks like double quotes - " - may not actually be. If you really can't tell the difference (perhaps your editor's fault), then delete those lines with the problem, and type them in manually yourself.