• Cyberian's Gold

    Solution:
    Java:

    public class MyClass {
        public static void main(String args[]) {
            System.out.println("My id is BC180401429");
            System.out.println("** Language is JAVA **");
            
            for(int i=0;i<=14;i++){
                for(int j=0;j<=29;j++){
                    System.out.print("Outer:"+i+"Inner:"+j);
                }
            }
    
        }
    }
    
    

    5608a2a6-7df7-4a31-9212-8e1f6b861c3a-image.png

    C#:

    using System;
    
    class Program
    {
        static void Main() {
            Console.WriteLine("My id is BC180401429");
            Console.WriteLine("** Language is C# **");
            
            for(int i=0;i<=14;i++){
                for(int j=0;j<=29;j++){
                    Console.Write("Outer:"+i+"Inner:"+j);
                }
            }
            
            
        }
    }
    
    

    cbc743d8-98fa-445b-9f7e-70c3fee295de-image.png

    C++:

    #include <iostream>
    
    using namespace std;
    
    int main() {
           cout<< "My id is BC180401429 \n";
           
           cout<< "** Language is C++ ** \n";
            
            for(int i=0;i<=14;i++){
                for(int j=0;j<=29;j++){
                    cout<< "Outer:"<<i<<"Inner:"<<j;
                }
            }
        
    }
    
    

    d8150fad-1df3-4376-b59b-fcfa4dfb6dba-image.png

  • Cyberian's Gold

    Solution:
    Java:

    public class MyClass {
        public static void main(String args[]) {
            System.out.println("My id is BC180401429");
            System.out.println("** Language is JAVA **");
            
            for(int i=0;i<=14;i++){
                for(int j=0;j<=29;j++){
                    System.out.print("Outer:"+i+"Inner:"+j);
                }
            }
    
        }
    }
    
    

    5608a2a6-7df7-4a31-9212-8e1f6b861c3a-image.png

    C#:

    using System;
    
    class Program
    {
        static void Main() {
            Console.WriteLine("My id is BC180401429");
            Console.WriteLine("** Language is C# **");
            
            for(int i=0;i<=14;i++){
                for(int j=0;j<=29;j++){
                    Console.Write("Outer:"+i+"Inner:"+j);
                }
            }
            
            
        }
    }
    
    

    cbc743d8-98fa-445b-9f7e-70c3fee295de-image.png

    C++:

    #include <iostream>
    
    using namespace std;
    
    int main() {
           cout<< "My id is BC180401429 \n";
           
           cout<< "** Language is C++ ** \n";
            
            for(int i=0;i<=14;i++){
                for(int j=0;j<=29;j++){
                    cout<< "Outer:"<<i<<"Inner:"<<j;
                }
            }
        
    }
    
    

    d8150fad-1df3-4376-b59b-fcfa4dfb6dba-image.png

  • Cyberian's

    using System;
    
    class Program
    {
    static void Main() {
    
    Console.Write("My Student is is BC160401656 \n");
    Console.Write("My Language is C#");
    
        int outerloop=1;
        int innerloop=1;
        for (int i=1;i<=29;i++){
            Console.Write("outerloop:" + outerloop++);
            if (outerloop == 30){
                Console.Write("\n----------\n");
                for (int j=1;j<=79;j++){
                    Console.Write("ïnnerloop:" + innerloop++);
                }
            }
        }
        
    }
    }
    
  • Cyberian's

    public class MyClass {
        public static void main(String args[]){
            System.out.println("My id is BS12345678");
            System.out.println("My language is Java");
            int outerloop=1;
            int innerloop=1;
            for(int i=1;i<=29;i++){
                System.out.print("outerloop:" + outerloop++);
                
                if (outerloop == 30){
                    System.out.println("\n----------\n");
                    for(int j=1;j<=79;j++){
                        System.out.print("innerloop:" + innerloop++);
                    }
                }
                
            }
        }
    }
    
  • Cyberian's Gold

    Correct Solution of C++

    #include <iostream>
    using namespace std;
    int main() {
    int outerloop=1;
    int innerloop=1;
        cout<<"My Student ID is BS12345678\n";
        cout<<"My coding Language is C++\n\n";
    for(int i=1;i<=29;i++){
        cout<<"outerloop:"<<outerloop++;
    
        if (outerloop == 30){
            cout<<"\n.......\n";
            for(int j=1;j<=79;j++){
            cout<<"innerloop:"<<innerloop++;
    
            }
        }
    }
    }
    
  • Cyberian's Gold

    Idea Solution

  • Cyberian's Gold

  • Cyberian's Gold

    @cyberian
    Please and check and any suggestion?

  • Cyberian's

    Java:

    public class MyClass {
    public static void main(String args[]) {
    
    System.out.println("My Student ID is BC160401656");
    System.out.println("My Language is JAVA");
    }
    }
    

    C#:

    using System;
    
    class Program
    {
    static void Main() {
    
    Console.Write("My Student is is BC160401656 \n");
    Console.Write("My Language is C#");
    }
    }
    

    C++:

    #include <iostream>
    
    using namespace std;
    
       int main() {
    
        cout"MY Student ID is BC160401656 \n " ;
    
        cout"Language is C++" ;
    
    }
    
Insaf Sehat Card Live Cricket Streaming
  • 4
  • 2
  • 5
  • 2
  • 2
  • 1
  • 15
  • 11
Quiz 100% Result Quiz 100% Result
| |