- Write a program that subtracts the value 15 from 87 and displays the result, together with an appropriate message, at the terminal.
- Identify the syntactic errors in the following program. Then type in and run the corrected program to ensure you have correctly identified all the mistakes. #include <stdio.h>
What output might you expect from the following program?
#include
int main (void)
{
int answer, result;
answer = 100;
result = answer - 10;
printf ("The result is %i\n", result + 5);
return 0;
}
What output would you expect from the following program?
#include <stdio.h>
int main (void)
{
char c, d;
c = 'd';
d = c;
printf ("d = %c\n", d);
return 0;
}
Find the cost of 5 items if the unit price is 10.50 Rupees.
The figure gives a rough sketch of a running track. It includes a rectangular shape and two semi-circles. The length of the rectangular part is 67m and breadth is 21m.Calculate the distance of the running track.
int main (Void)
(
INT sum;
/* COMPUTE RESULT sum = 25 + 37 – 19
/* DISPLAY RESULTS //
printf ("The answer is %i\n" sum);
return 0;
}
Answer click here.
0 Comments
Post a Comment