#include <iostream>
using namespace std;
double sum(int a, int b, int c, int d, int e);
{
int n,m;
double x,y;
cout<<"Variable n,m dhe x:";
cin>>n;
cin>>m;
cin>>x;
y=2*x+4*sum(3,n+2,4,1,4)+sum(4,2*n,6,m,3)+sum(5,n,n+1,n-2,-7);
cout<<"y="<<y<<endl;
return 0;
}
Can you help in this exam how can I solve i can't send picture to see this exam can you write you email or facebook i will send you this exam I need to solve this function MiiNipaa and Mizfizz
can you complete this problem i send code
#include <iostream.h>
double fakt( int k);
double shuma(int a, int b, int c, int k, int d, int e);
{
int n,m;
double x,y;
cout<<"Te ipen vlerat e n,m dhe x:";
cin>>n;
cin>>m;
cin>>x;
y=2*x+4*shuma(3,n+2,4,1,4)+shuma(4,2*n,6,m,3)+shuma(5,n,n+1,n-2,-7);
cout<<"Shuma e fituar eshte y="<<y<<endl;
return 0;
};
The errors without int main() may be coming up because there are problems with your program, not because you don't want int main(). Please repost your changed code with [code] tags, the compiler errors you get, and what you think the problem(s) is/are.