Guest User

Untitled

a guest
Jun 10th, 2020
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Demo {
  7.    class MyApplication {
  8.       static void Main(string[] args) {
  9.          int num;
  10.          num = 15;
  11.            
  12.          Console.WriteLine("Number: "+num);
  13.            
  14.          // checking if the number is divisible by 3 and 5
  15.          if (num % 5 == 0) {
  16.             Console.WriteLine(num);
  17.          }
  18.          Console.ReadLine();
  19.       }
  20.    }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment