0% found this document useful (0 votes)
3 views221 pages

C Project Codes

The document contains a collection of 500+ C programming project codes ranging from beginner to advanced levels. It includes examples such as a basic calculator, unit converter, and a simple Hello World program, with multiple repetitions of each project. Each code snippet demonstrates fundamental programming concepts and user input handling in C.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views221 pages

C Project Codes

The document contains a collection of 500+ C programming project codes ranging from beginner to advanced levels. It includes examples such as a basic calculator, unit converter, and a simple Hello World program, with multiple repetitions of each project. Each code snippet demonstrates fundamental programming concepts and user input handling in C.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 221

500+ C Project Codes (Beginner to Advanced)

1. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

2. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 1
500+ C Project Codes (Beginner to Advanced)

3. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

4. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 2
500+ C Project Codes (Beginner to Advanced)

5. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

6. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

7. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 3
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

8. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

9. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

10. Basic Calculator

Page 4
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

11. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 5
500+ C Project Codes (Beginner to Advanced)

12. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

13. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

14. Unit Converter

#include <stdio.h>

Page 6
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

15. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

16. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 7
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

17. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

18. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

19. Basic Calculator

#include <stdio.h>

Page 8
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

20. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

21. Hello World Program

Page 9
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

22. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

23. Unit Converter

#include <stdio.h>

Page 10
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

24. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

25. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 11
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

26. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

27. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

28. Basic Calculator

#include <stdio.h>

int main() {

Page 12
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

29. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

30. Hello World Program

#include <stdio.h>

Page 13
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

31. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

32. Unit Converter

#include <stdio.h>

int main() {

Page 14
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

33. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

34. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 15
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

35. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

36. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

37. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 16
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

38. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

39. Hello World Program

#include <stdio.h>

Page 17
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

40. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

41. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 18
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

42. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

43. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 19
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

44. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

45. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

46. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 20
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

47. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

48. Hello World Program

#include <stdio.h>

int main() {

Page 21
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

49. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

50. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 22
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

51. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

52. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 23
500+ C Project Codes (Beginner to Advanced)

return 0;

53. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

54. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

55. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

Page 24
500+ C Project Codes (Beginner to Advanced)

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

56. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

57. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

Page 25
500+ C Project Codes (Beginner to Advanced)

return 0;

58. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

59. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

Page 26
500+ C Project Codes (Beginner to Advanced)

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

60. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

61. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 27
500+ C Project Codes (Beginner to Advanced)

return 0;

62. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

63. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

64. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

Page 28
500+ C Project Codes (Beginner to Advanced)

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

65. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

66. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 29
500+ C Project Codes (Beginner to Advanced)

67. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

68. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

Page 30
500+ C Project Codes (Beginner to Advanced)

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

69. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

70. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 31
500+ C Project Codes (Beginner to Advanced)

71. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

72. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

73. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

Page 32
500+ C Project Codes (Beginner to Advanced)

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

74. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

75. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 33
500+ C Project Codes (Beginner to Advanced)

76. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

77. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 34
500+ C Project Codes (Beginner to Advanced)

78. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

79. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 35
500+ C Project Codes (Beginner to Advanced)

80. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

81. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

82. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 36
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

83. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

84. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

85. Basic Calculator

Page 37
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

86. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 38
500+ C Project Codes (Beginner to Advanced)

87. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

88. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

89. Unit Converter

#include <stdio.h>

Page 39
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

90. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

91. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 40
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

92. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

93. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

94. Basic Calculator

#include <stdio.h>

Page 41
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

95. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

96. Hello World Program

Page 42
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

97. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

98. Unit Converter

#include <stdio.h>

Page 43
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

99. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

100. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 44
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

101. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

102. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

103. Basic Calculator

#include <stdio.h>

int main() {

Page 45
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

104. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

105. Hello World Program

#include <stdio.h>

Page 46
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

106. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

107. Unit Converter

#include <stdio.h>

int main() {

Page 47
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

108. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

109. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 48
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

110. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

111. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

112. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 49
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

113. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

114. Hello World Program

#include <stdio.h>

Page 50
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

115. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

116. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 51
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

117. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

118. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 52
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

119. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

120. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

121. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 53
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

122. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

123. Hello World Program

#include <stdio.h>

int main() {

Page 54
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

124. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

125. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 55
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

126. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

127. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 56
500+ C Project Codes (Beginner to Advanced)

return 0;

128. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

129. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

130. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

Page 57
500+ C Project Codes (Beginner to Advanced)

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

131. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

132. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

Page 58
500+ C Project Codes (Beginner to Advanced)

return 0;

133. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

134. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

Page 59
500+ C Project Codes (Beginner to Advanced)

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

135. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

136. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 60
500+ C Project Codes (Beginner to Advanced)

return 0;

137. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

138. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

139. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

Page 61
500+ C Project Codes (Beginner to Advanced)

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

140. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

141. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 62
500+ C Project Codes (Beginner to Advanced)

142. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

143. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

Page 63
500+ C Project Codes (Beginner to Advanced)

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

144. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

145. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 64
500+ C Project Codes (Beginner to Advanced)

146. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

147. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

148. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

Page 65
500+ C Project Codes (Beginner to Advanced)

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

149. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

150. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 66
500+ C Project Codes (Beginner to Advanced)

151. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

152. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 67
500+ C Project Codes (Beginner to Advanced)

153. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

154. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 68
500+ C Project Codes (Beginner to Advanced)

155. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

156. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

157. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 69
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

158. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

159. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

160. Basic Calculator

Page 70
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

161. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 71
500+ C Project Codes (Beginner to Advanced)

162. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

163. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

164. Unit Converter

#include <stdio.h>

Page 72
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

165. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

166. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 73
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

167. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

168. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

169. Basic Calculator

#include <stdio.h>

Page 74
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

170. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

171. Hello World Program

Page 75
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

172. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

173. Unit Converter

#include <stdio.h>

Page 76
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

174. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

175. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 77
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

176. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

177. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

178. Basic Calculator

#include <stdio.h>

int main() {

Page 78
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

179. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

180. Hello World Program

#include <stdio.h>

Page 79
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

181. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

182. Unit Converter

#include <stdio.h>

int main() {

Page 80
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

183. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

184. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 81
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

185. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

186. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

187. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 82
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

188. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

189. Hello World Program

#include <stdio.h>

Page 83
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

190. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

191. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 84
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

192. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

193. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 85
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

194. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

195. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

196. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 86
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

197. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

198. Hello World Program

#include <stdio.h>

int main() {

Page 87
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

199. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

200. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 88
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

201. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

202. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 89
500+ C Project Codes (Beginner to Advanced)

return 0;

203. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

204. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

205. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

Page 90
500+ C Project Codes (Beginner to Advanced)

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

206. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

207. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

Page 91
500+ C Project Codes (Beginner to Advanced)

return 0;

208. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

209. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

Page 92
500+ C Project Codes (Beginner to Advanced)

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

210. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

211. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 93
500+ C Project Codes (Beginner to Advanced)

return 0;

212. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

213. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

214. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

Page 94
500+ C Project Codes (Beginner to Advanced)

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

215. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

216. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 95
500+ C Project Codes (Beginner to Advanced)

217. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

218. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

Page 96
500+ C Project Codes (Beginner to Advanced)

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

219. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

220. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 97
500+ C Project Codes (Beginner to Advanced)

221. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

222. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

223. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

Page 98
500+ C Project Codes (Beginner to Advanced)

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

224. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

225. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 99
500+ C Project Codes (Beginner to Advanced)

226. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

227. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 100
500+ C Project Codes (Beginner to Advanced)

228. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

229. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 101
500+ C Project Codes (Beginner to Advanced)

230. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

231. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

232. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 102
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

233. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

234. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

235. Basic Calculator

Page 103
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

236. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 104
500+ C Project Codes (Beginner to Advanced)

237. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

238. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

239. Unit Converter

#include <stdio.h>

Page 105
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

240. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

241. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 106
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

242. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

243. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

244. Basic Calculator

#include <stdio.h>

Page 107
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

245. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

246. Hello World Program

Page 108
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

247. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

248. Unit Converter

#include <stdio.h>

Page 109
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

249. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

250. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 110
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

251. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

252. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

253. Basic Calculator

#include <stdio.h>

int main() {

Page 111
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

254. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

255. Hello World Program

#include <stdio.h>

Page 112
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

256. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

257. Unit Converter

#include <stdio.h>

int main() {

Page 113
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

258. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

259. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 114
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

260. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

261. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

262. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 115
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

263. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

264. Hello World Program

#include <stdio.h>

Page 116
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

265. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

266. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 117
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

267. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

268. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 118
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

269. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

270. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

271. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 119
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

272. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

273. Hello World Program

#include <stdio.h>

int main() {

Page 120
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

274. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

275. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 121
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

276. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

277. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 122
500+ C Project Codes (Beginner to Advanced)

return 0;

278. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

279. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

280. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

Page 123
500+ C Project Codes (Beginner to Advanced)

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

281. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

282. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

Page 124
500+ C Project Codes (Beginner to Advanced)

return 0;

283. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

284. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

Page 125
500+ C Project Codes (Beginner to Advanced)

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

285. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

286. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 126
500+ C Project Codes (Beginner to Advanced)

return 0;

287. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

288. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

289. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

Page 127
500+ C Project Codes (Beginner to Advanced)

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

290. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

291. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 128
500+ C Project Codes (Beginner to Advanced)

292. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

293. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

Page 129
500+ C Project Codes (Beginner to Advanced)

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

294. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

295. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 130
500+ C Project Codes (Beginner to Advanced)

296. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

297. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

298. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

Page 131
500+ C Project Codes (Beginner to Advanced)

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

299. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

300. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 132
500+ C Project Codes (Beginner to Advanced)

301. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

302. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 133
500+ C Project Codes (Beginner to Advanced)

303. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

304. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 134
500+ C Project Codes (Beginner to Advanced)

305. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

306. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

307. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 135
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

308. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

309. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

310. Basic Calculator

Page 136
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

311. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 137
500+ C Project Codes (Beginner to Advanced)

312. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

313. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

314. Unit Converter

#include <stdio.h>

Page 138
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

315. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

316. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 139
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

317. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

318. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

319. Basic Calculator

#include <stdio.h>

Page 140
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

320. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

321. Hello World Program

Page 141
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

322. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

323. Unit Converter

#include <stdio.h>

Page 142
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

324. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

325. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 143
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

326. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

327. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

328. Basic Calculator

#include <stdio.h>

int main() {

Page 144
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

329. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

330. Hello World Program

#include <stdio.h>

Page 145
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

331. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

332. Unit Converter

#include <stdio.h>

int main() {

Page 146
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

333. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

334. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 147
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

335. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

336. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

337. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 148
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

338. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

339. Hello World Program

#include <stdio.h>

Page 149
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

340. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

341. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 150
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

342. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

343. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 151
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

344. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

345. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

346. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 152
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

347. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

348. Hello World Program

#include <stdio.h>

int main() {

Page 153
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

349. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

350. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 154
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

351. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

352. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 155
500+ C Project Codes (Beginner to Advanced)

return 0;

353. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

354. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

355. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

Page 156
500+ C Project Codes (Beginner to Advanced)

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

356. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

357. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

Page 157
500+ C Project Codes (Beginner to Advanced)

return 0;

358. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

359. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

Page 158
500+ C Project Codes (Beginner to Advanced)

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

360. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

361. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 159
500+ C Project Codes (Beginner to Advanced)

return 0;

362. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

363. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

364. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

Page 160
500+ C Project Codes (Beginner to Advanced)

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

365. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

366. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 161
500+ C Project Codes (Beginner to Advanced)

367. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

368. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

Page 162
500+ C Project Codes (Beginner to Advanced)

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

369. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

370. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 163
500+ C Project Codes (Beginner to Advanced)

371. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

372. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

373. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

Page 164
500+ C Project Codes (Beginner to Advanced)

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

374. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

375. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 165
500+ C Project Codes (Beginner to Advanced)

376. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

377. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 166
500+ C Project Codes (Beginner to Advanced)

378. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

379. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 167
500+ C Project Codes (Beginner to Advanced)

380. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

381. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

382. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 168
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

383. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

384. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

385. Basic Calculator

Page 169
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

386. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 170
500+ C Project Codes (Beginner to Advanced)

387. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

388. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

389. Unit Converter

#include <stdio.h>

Page 171
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

390. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

391. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 172
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

392. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

393. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

394. Basic Calculator

#include <stdio.h>

Page 173
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

395. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

396. Hello World Program

Page 174
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

397. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

398. Unit Converter

#include <stdio.h>

Page 175
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

399. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

400. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 176
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

401. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

402. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

403. Basic Calculator

#include <stdio.h>

int main() {

Page 177
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

404. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

405. Hello World Program

#include <stdio.h>

Page 178
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

406. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

407. Unit Converter

#include <stdio.h>

int main() {

Page 179
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

408. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

409. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 180
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

410. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

411. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

412. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 181
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

413. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

414. Hello World Program

#include <stdio.h>

Page 182
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

415. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

416. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 183
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

417. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

418. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 184
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

419. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

420. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

421. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 185
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

422. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

423. Hello World Program

#include <stdio.h>

int main() {

Page 186
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

424. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

425. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 187
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

426. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

427. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 188
500+ C Project Codes (Beginner to Advanced)

return 0;

428. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

429. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

430. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

Page 189
500+ C Project Codes (Beginner to Advanced)

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

431. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

432. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

Page 190
500+ C Project Codes (Beginner to Advanced)

return 0;

433. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

434. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

Page 191
500+ C Project Codes (Beginner to Advanced)

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

435. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

436. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

Page 192
500+ C Project Codes (Beginner to Advanced)

return 0;

437. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

438. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

439. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

Page 193
500+ C Project Codes (Beginner to Advanced)

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

440. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

441. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 194
500+ C Project Codes (Beginner to Advanced)

442. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

443. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

Page 195
500+ C Project Codes (Beginner to Advanced)

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

444. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

445. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 196
500+ C Project Codes (Beginner to Advanced)

446. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

447. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

448. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

Page 197
500+ C Project Codes (Beginner to Advanced)

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

449. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

450. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

Page 198
500+ C Project Codes (Beginner to Advanced)

451. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

452. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 199
500+ C Project Codes (Beginner to Advanced)

453. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

454. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

Page 200
500+ C Project Codes (Beginner to Advanced)

455. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

456. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

457. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

Page 201
500+ C Project Codes (Beginner to Advanced)

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

458. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

459. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

460. Basic Calculator

Page 202
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

461. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 203
500+ C Project Codes (Beginner to Advanced)

462. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

463. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

464. Unit Converter

#include <stdio.h>

Page 204
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

465. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

466. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

Page 205
500+ C Project Codes (Beginner to Advanced)

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

467. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

468. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

469. Basic Calculator

#include <stdio.h>

Page 206
500+ C Project Codes (Beginner to Advanced)

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

470. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

471. Hello World Program

Page 207
500+ C Project Codes (Beginner to Advanced)

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

472. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

473. Unit Converter

#include <stdio.h>

Page 208
500+ C Project Codes (Beginner to Advanced)

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

474. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

475. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

Page 209
500+ C Project Codes (Beginner to Advanced)

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

476. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

477. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

478. Basic Calculator

#include <stdio.h>

int main() {

Page 210
500+ C Project Codes (Beginner to Advanced)

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

479. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

480. Hello World Program

#include <stdio.h>

Page 211
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

481. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

482. Unit Converter

#include <stdio.h>

int main() {

Page 212
500+ C Project Codes (Beginner to Advanced)

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

483. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

484. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

Page 213
500+ C Project Codes (Beginner to Advanced)

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

485. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

486. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

487. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

Page 214
500+ C Project Codes (Beginner to Advanced)

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

488. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

489. Hello World Program

#include <stdio.h>

Page 215
500+ C Project Codes (Beginner to Advanced)

int main() {

printf("Hello, World!\n");

return 0;

490. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

491. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

Page 216
500+ C Project Codes (Beginner to Advanced)

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

492. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

493. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

Page 217
500+ C Project Codes (Beginner to Advanced)

default: printf("Invalid operator.\n");

return 0;

494. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

495. Hello World Program

#include <stdio.h>

int main() {

printf("Hello, World!\n");

return 0;

496. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

Page 218
500+ C Project Codes (Beginner to Advanced)

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

497. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

498. Hello World Program

#include <stdio.h>

int main() {

Page 219
500+ C Project Codes (Beginner to Advanced)

printf("Hello, World!\n");

return 0;

499. Basic Calculator

#include <stdio.h>

int main() {

int a, b;

char op;

printf("Enter two numbers: ");

scanf("%d %d", &a, &b);

printf("Enter operator (+, -, *, /): ");

scanf(" %c", &op);

switch(op) {

case '+': printf("%d\n", a + b); break;

case '-': printf("%d\n", a - b); break;

case '*': printf("%d\n", a * b); break;

case '/': if (b != 0) printf("%d\n", a / b); else printf("Error! Division by

zero.\n"); break;

default: printf("Invalid operator.\n");

return 0;

500. Unit Converter

#include <stdio.h>

int main() {

float celsius, fahrenheit;

printf("Enter temperature in Celsius: ");

Page 220
500+ C Project Codes (Beginner to Advanced)

scanf("%f", &celsius);

fahrenheit = (celsius * 9/5) + 32;

printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);

return 0;

Page 221

You might also like