Quick actions

cmd+k|ctrl+k

Navigation

Languages

MULTIPLOS

Snippet info

Language

Csharp

Visibility

public

Author

legacy-v1-1549

Created

2016-08-27T22:03:37Z

Updated

2016-08-29T23:55:11Z

using System;

class MainClass {
    static void Main() {
        
        int s, m;
        
                     Console.WriteLine("\n\n CALCULADOR DE MULTIPLOS " );
        
                     Console.WriteLine(" \n INGRESE EL MULTIPLO... " );
        //m = Convert.ToInt32(Console.ReadLine());
        m = 43;
        
                     Console.WriteLine("\n INGRESE EL SUBMULTIPLO " );
        //s = Convert.ToInt32(Console.ReadLine());
        s = 7;
        
        if (m % s == 0)
        {
            Console.WriteLine( m + " ES MULTIPLO DE "  + s );
        }
        
        else
        {
            Console.WriteLine(m + " NO ES MULTIPLO DE " + s);
        }
    }
}
INFO