Class 11: C Program

✅ 10 Easy C Programming — Questions & Solutions

Click Show Code to view each solution. Use Copy to copy the code.

1. Write a program to print “Hello World”.
2. Write a program to add two numbers entered by the user.
3. Write a program to find the largest of two numbers.
4. Write a program to check whether a number is even or odd.
5. Write a program to calculate the area of a circle (area = π * r * r).
6. Write a program to swap two numbers (use a temporary variable).
7. Write a program to find the sum of natural numbers from 1 to n.
8. Write a program to print the multiplication table of a given number.
9. Write a program to check whether a number is positive, negative or zero.
10. Write a program to find the factorial of a number.

Tip: In Blogspot switch to HTML editor, paste this block, then switch back to Compose to see it.

Written By

Helping Students Succeed • •Free Book Solutions and Study Guides • sandesh_Shiwakoti