C programming's problem
Programming C's solve
1.write a programming in C language to find out the sum and arrange of any three number.
Ans:-/* program to find out the sum and arrange of any three numbers */
#include < std io .h >
#include < con io .h >
void main ( )
{
int a,b.c,sum;
float avg;
print f ("enter the three numbers\n")
scan f ("%d%d%d"&a&b&c);
sum=a+b+c
avg= sum/3
print f ("sum =%d,average =%f\n",sum,avg")
getch ( );
}
1.write a programming in C language to find out the sum and arrange of any three number.
Ans:-/* program to find out the sum and arrange of any three numbers */
#include < std io .h >
#include < con io .h >
void main ( )
{
int a,b.c,sum;
float avg;
print f ("enter the three numbers\n")
scan f ("%d%d%d"&a&b&c);
sum=a+b+c
avg= sum/3
print f ("sum =%d,average =%f\n",sum,avg")
getch ( );
}
No comments