Input & output
Question ID
1111110030: IO 21
Test case 1:
Input (stdin)
12.01
Expected Output
The integer variant of 12.01 is=12
Test case 2:
Input
23.15
Output
The integer variant of 23.15 is=23
Source code :
#include <stdio.h>
int main()
{
float a;
scanf("%f",&a);
printf("The integer variant of %0.2f is=%0.0f",a,a);
return 0;
}
No comments:
Post a Comment