Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

ADVANCED ALGORITHM ASSIGNMENT

1. What is the exact output result of this code?


#include <stdio.h>
int main()
{
printf("Hi\nthere\nWhat is the output\n?");
}
2. Write a program or algorithm that declares two floating numbers. Initialize them with float
values. Then print their sum and multiplication in two separate lines.
3. Write the statements to get an integer value and print it
4. Why these variable names are not valid?
test$var
my counter
9count
Float

5.Define an Algorithm
6. What effect do comments have on a program?
7. What's the difference between an integer variable and a floating-point variable?

You might also like