NOTES

PDF Document


Answers

PDF Doc


Questions

  1. Explain simple if, if-else with syntax,flow chart and suitable example program.
  2. Write the syntax of switch case. Write a c program to make a calculator using switch case.
  3. Difference between while and do while loop with example.
  4. Write a C program to find sum of n natural numbers.
  5. Write a C program to find given number is prime or not
  6. Explain nested for loop with syntax and suitable example program.
  7. Explain for loop with syntax,flow chart with suitable example program.
  8. Write a C program to find given year is leap year or not.
  9. Write a short note on loop control statements.
  10. Write a C program to find factorial of a given number.