Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Demo {
- class MyApplication {
- static void Main(string[] args) {
- int num;
- num = 15;
- Console.WriteLine("Number: "+num);
- // checking if the number is divisible by 3 and 5
- if (num % 5 == 0) {
- Console.WriteLine(num);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment