Computer Science, asked by mae13, 1 year ago

please help. Can solve any of them

Attachments:

Anonymous286: how many?
mae13: as much as u can
Anonymous286: any specific that u want
mae13: If you could help with the 4th one
mae13: Try tobdo it in a simple way
mae13: *to do
Anonymous286: ok

Answers

Answered by smartboyGanesh
1

this is answer of 4 .

#include <stdio.h>

int main()

{

   int a,b,c,sum;

   float avg;

   printf("Enter first number :");

   scanf("%d",&a);

   printf("Enter second number :");

   scanf("%d",&b);

printf("Enter second number :");

   scanf("%d",&c);

   sum=a+b+c;

   avg= (float)(a+b+c)/3;

   printf("\nSum of %d and %d is = %d",a,b,c,sum);

   printf("\nAverage of %d and %d is = %f",a,b,c,avg);

   return 0;

}


mae13: Thanks a lot
Answered by Anonymous286
1
2nd image is the continuation of first btw
U can use /n if u want the output on separate lines
Hope it helps....
:)
Attachments:
Similar questions