The document contains questions about code output, writing algorithms to perform math operations on variables, valid variable names, comments, and the difference between integer and floating-point variables. It asks the reader to write code that prints "Hi", "there", "What is the output" on separate lines, code to declare and initialize two floats, add and multiply them, get and print an integer, and define an algorithm. It also asks about the purpose of comments and the difference between integer and floating-point variables.
The document contains questions about code output, writing algorithms to perform math operations on variables, valid variable names, comments, and the difference between integer and floating-point variables. It asks the reader to write code that prints "Hi", "there", "What is the output" on separate lines, code to declare and initialize two floats, add and multiply them, get and print an integer, and define an algorithm. It also asks about the purpose of comments and the difference between integer and floating-point variables.
The document contains questions about code output, writing algorithms to perform math operations on variables, valid variable names, comments, and the difference between integer and floating-point variables. It asks the reader to write code that prints "Hi", "there", "What is the output" on separate lines, code to declare and initialize two floats, add and multiply them, get and print an integer, and define an algorithm. It also asks about the purpose of comments and the difference between integer and floating-point variables.
#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?