HomeC Logical ProgramsSum of Two Numbers in C January 7, 2021 No Comments Sum of Two Numbers in C Previous Next #include<stdio.h> int main() { float a,b,sum ; printf("Enter 2 numbers :\n"); scanf("%f%f" , &a, &b); sum=a+b; printf("Sum is : %f \n", sum); return 0; } Previous Next Related Posts C program to calculate the total electricity bill C program to perform arithmetic operations in menu driven approach Add Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.