Write a program to read the following numbers,round them off to the nearest integers and print out the results in integer form : 35.7 50.21 -23.73 -46.45
#include<stdio.h> #include<conio.h> #include<math.h> void main() { float n; clrscr(); printf("Enter the number:-"); scanf("%f",&n); printf("The integer number after rounded is %5.0f",n); getch(); } /* ******** OUTPUT ******** Enter the number:-12.33 The integer number after rounded is 12 Enter the number:-12.55 The integer number after rounded is 13*/