1 solutions

  • 0
    @ 2025-11-5 15:11:23

    C :

    #include <stdio.h>
    int main (void)
    {
        printf ("**************************\n");
        printf ("         Very    Good!\n");
        printf ("**************************");
        return 0 ;
    }
    

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
    	cout<<"**************************"<<endl;
    	cout<<"         Very    Good!"<<endl;
    	cout<<"**************************"<<endl;
        return 0;
    }
    
    

    Pascal :

    var i:longint; 
    begin
      for i:=1 to 26 do write('*'); 
      writeln; 
      writeln('         Very    Good!'); 
      for i:=1 to 26 do write('*'); 
      writeln; 
    end. 
    

    Java :

    public class Main
    {
    
    	public static void main(String[] args)
    	{
    		System.out.println( "**************************\n" +
                    "         Very    Good!\n" +
                    "**************************");
    	}
    	
    }
    
    • 1

    C语言程序设计教程(第三版)课后习题1.5

    Information

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