Skip to content

C- Programming #36

@ballbottum528-afk

Description

@ballbottum528-afk

#include<stdio.h>
int main()
{
double a,b,c,d,q,w,e,r,sum;
printf("Enter the four real number:\n");
scanf("%lf%lf%lf%lf",&a,&b,&c,&d);
sum=a+b+c+d;
printf("%lf+%lf+%lf+%lf=%0.1lf\n",a,b,c,d,sum);
printf("sum is:%0.3lf\n",sum);
printf("Enter the integer number:");
scanf("%d%d%d%d",&q,&w,&e,&r);
sum=q+w+e+r;
printf("%d+%d+%d+%d=%d\n",q,w,e,r,sum);
printf("sum is:%d",sum);
return 0;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions