Question: The next test code allows you to perform common operation. Test the code below: #include int main (int argc, char const *argv[]) { int a

The next test code allows you to perform common operation. Test the code below:

#include int main (int argc, char const *argv[])

{

int a = 23; int b = 78;

int sum = a+b; int difference = a-b; int multiply = a*b; int mod = b % a;

printf("%d %d %d %d ", sum, difference, multiply, mod);

return 0; }

1. Create your own C code and performing simple operations. Ensure to incorporate printf and scanf.

Test and execute the follow code:

#include

int main(int argc, char const *argv[])

{ int a = 3; int b = 5; int c = 3;

in((a < b) && (a == c)){ //do something printf("Yes true )"); }else { printf("No, not true "); } return 0; }

2. Create your own code and performing simple decisions with the use of operators and logical operators.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!