Monday, January 4, 2021

Input & Output Question ID 1111110030: IO 21

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

cisco Cybersecurity Essentials Quiz 8 answer in bold

Question  1 Correct Mark 2.00 out of 2.00 Flag question Question text A company has had several incidents involving users downloading unauth...