1 solutions

  • 0
    @ 2025-11-5 17:30:53

    C :

    #include <stdio.h>
    
    int main(void) {
    	int a, b, c;
    	scanf("%d%d", &a, &b);
    	c = a - b;
    	printf("%d", c);
    	return 0;
    }
    
    

    C++ :

    #include<cstdio>
    using namespace std;
    int main()
    {
    	int a,b,s;
    	scanf("%d%d",&a,&b);
    	s=a-b;
    	printf("%d\n",s);
    	return 0;
    }
    

    Pascal :

    program yucong;
    var
    a,b,s:integer;
    begin
    read(a,b);
    s:=a-b;
    writeln(s);
    readln;
    end.
    
    • 1

    Information

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