Sum and Difference of Two Numbers

  • + 0 comments

    include

    include

    include

    include

    int main() { int a,b; float c,d;

    printf("enter number a:");
    scanf("%d",&a);
    
    printf("enter number b:");
    scanf("%d",&b);
    
    printf("enter number c:");
    scanf("%f",&c);
    
    printf("enter number d:");
    scanf("%f",&d);
    
    printf("%d %d",a+b,a-b);
    printf("\n%.1f %.1f",c+d,c-d);
    
    
    return 0;
    

    }