Banner

Banner
Powered by- Swapno Computer Institute

তিনটি পূর্ণসংখ্যার যোগফল ও গড় মান প্রদর্শন || Algorithm, Flowchart and C-Program to print sum and average of three integers

Algorithm

Step 1: Start
Step 2: Input a,b,c
Step 3: Sum=a+b+c
Step 4: Average=sum/3
Step 5: Print Sum and Average


Flowchart



C-Program

#include
int main()
{
int a,b,c,sum;
float avg;
printf("Enter three number:");
scanf("%d%d%d",&a,&b,&c);
sum=a+b+c;
avg=(float)sum/3;
printf("Sum is:%d\n",sum);
printf("Average is:%f",avg);
getch();
}

Source and Run File

Post a Comment

0 Comments