1 solutions

  • 0
    @ 2025-11-5 15:44:58

    C++ :

    #include<iostream>
    #include<cstdlib>
    #include<cstdio>
    using namespace std;
    int main()
    {
    	float a,b;
    	int c;
    	float d;
    	cin>>a>>b;
    	c=a/b;
    	cout<<c<<" ";
    	d=a/b;
    	printf("%.2f",d);
    	//system("pause");
    	return 0;
    }
    
    

    Pascal :

    var
    a,s:integer;
    d:real;
    begin
    read(a,s);
    d:=a/s;
    write(a div s,' ',d:0:2);
    end.
    
    
    • 1

    Information

    ID
    17122
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By