rounding in C

Rounding Of Number In C

Q. How to make program  of Rounding Number in C ? #include<stdio.h> #include<conio.h> void main () { float num; int x; clrscr(); printf(“Enter your Number”); scanf(“%f”,&num); if(num<0) x=(num-0.5); else x=(num + 0.5); printf(“%d”,x); getch(); } After Running Program 🙂