basic addition of two decimal numbers

#include <stdio.h>
#include <stdlib.h>

int main()
{
    double num1, num2;

    printf("enter numer:");
    scanf("%lf", &num1);
    printf("enter numer:");
    scanf("%lf", &num2);

    printf("sum is %f", num1 + num2);


    return 0;
}

Comments

Popular posts from this blog

Using Struct C

arrays in c programming

for loop with index in C