Evaluate the following C++ expression:
int a, b = 2, k = 4;
a = b * 3/4 + k/4 + 8 – b + 5/8;
Answers
Answered by
4
Answer:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b=2,k=4;
a= ((b*3)/4)+(k/4)+8-b+(5/8);
cout>>a;
getch();
}
Explanation:
Answered by
0
Answer:
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int a,b=2,k=4;
a= ((b*3)/4)+(k/4)+8-b+(5/8);
cout<<a;
getch();
}
Explanation:
Similar questions