fork download
  1. #include<stdio>
  2. #include<conio>
  3. void main()
  4. {
  5. int i,n,p,r;
  6. clrscr();
  7. printf("Enter any no. = ");
  8. scanf("%d",&n);
  9. printf("Enter the precision = ");
  10. scanf("%d",&p);
  11. for(i=1;i<=p;i++)
  12. {
  13. r=n%10;
  14. n=n/10;
  15. }
  16. if(r>4)
  17. n=n+1;
  18. for(i=1;i<=p;i++)
  19. n=n*10;
  20. printf("\nthe round number = %d",n);
  21. getch();
  22. }
Compilation error #stdin compilation error #stdout 0s 3136KB
stdin
Standard input is empty
compilation info
prog.cpp:1:16: fatal error: stdio: No such file or directory
 #include<stdio>
                ^
compilation terminated.
stdout
Standard output is empty