find out the syntax. errors in the following
Answers
Question-
find out the syntax. errors in the following
#define PI 3.14159
Main()
{
Int R, C
Float perimeter
Float area;
C = PI
R = 5;
Perimeter = 2.0*C*R;
Area = C*R*R;
Printf("%f" "%d", &perimeter, &area) }
Answer-
The first problem is that you have tagged your question as "C#" but you have posted what looks to be C++. One of the things you will need to learn as you go through your course is to be precise.
If you have not been taught the basic syntax of C++ (such as what a main function should look like, how are statement blocks terminated, how to use standard functions like printf) then you really need to start at the beginning of your course reference material, or talk to your tutor.
Answer:
Write the given statement in three different ways conveying the same meaning. r: if a number is a multiple of 9, then it is a multiple of 3