```
#include <stdio.h>
int main(void){
float num1,num2,avg;
printf("Enter the first number ");
scanf("%f",&num1);
printf("Enter the second number ");
scanf("%f",&num2);
avg=(num1+num2)/2;
printf("Average of two numbers = %4.2f", avg);
return 0;
}
```

This code can be modified to include more integers for average value calculation.
Swapping two numbers sample code
Average of two numbers as entered by user
Highest of three numbers
Finding exam Grade of mark entered using if else condition
Calculation of user entered numbers
Percentage of Mark
Division of Mark
Digits in Number
Sum of Digits
Matrix Multiplication

md raihan | 31-07-2016 |

Thank u so much.....for given us a simple code that complete my assignment..so thank u....so much..sir.. |

g v divyaklakshmi | 30-08-2016 |

thank u very much . its is very use full for us in right time |

that guy | 31-12-2016 |

Thank you so much. it helps so much for my project. But there are still errors, can u help me with that? |

riddhi | 03-10-2017 |

how to find avg in simple method |