1 solutions

  • 0
    @ 2025-11-5 16:21:48

    C :

    #include<stdio.h>
    #include<string.h>
    int main(){
    	char str1[100];
    	char str2[100];
        gets(str1);
    	gets(str2);
    	printf("Hello!%s.\n",str1);
    	printf("Hello!%s.\n",str2);
        return 0;
    }
    

    C++ :

    #include<iostream>
    #include<string>
    using namespace std;
    
    int main()
    {
    	char ch1[100],ch2[100];
    	gets(ch1);
    	gets(ch2);
    	cout<<"Hello!"<<ch1<<"."<<endl;
    	cout<<"Hello!"<<ch2<<"."<<endl;
    	return 0;
    }
    

    Pascal :

    var a,b:string;
    begin
     readln(a);
     readln(b);
     writeln('Hello!',a,'.');
     writeln('Hello!',b,'.');
    end.
    
    
    • 1

    Information

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