1 solutions

  • 0
    @ 2025-11-5 20:13:11

    C :

    #include<stdio.h>
    
    int main()
    {
    	int a,b,c,d,e,f;
    	scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
    	f=a+b+c+d+e;
    	printf("%d+%d+%d+%d+%d=%d\n",a,b,c,d,e,f);
    	return 0;
    	
    }
    

    C++ :

    #include<stdio.h>
    
    int main()
    {
    	int a,b,c,d,e,f;
    	scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
    	f=a+b+c+d+e;
    	printf("%d+%d+%d+%d+%d=%d\n",a,b,c,d,e,f);
    	return 0;
    }
    

    Pascal :

    var a,b,c,d,e:longint;
    begin
      readln(a,b,c,d,e);
      writeln(a,'+',b,'+',c,'+',d,'+',e,'=',a+b+c+d+e);
    end.
    
    • 1

    Information

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