Tech That Matters

Category: Source Code

100 C# Programs With Example Code and Output – ziontutorial



This is a C# Program to check whether the entered number is even or odd.

Program/Source Code

Here if a given number is divisible by 2 with the remainder 0 then the number is an Even number. If the number is not divisible by 2 then that number will be an Odd number.

Program/Source Code

Here we write our first program of c# whether a number be a even number or odd number

using System;
public class OddEvenExample
{
    public static void Main(string[] args)
    {

        int i;

        Console.WriteLine( "Enter a number : ");

        i = int.Parse(Console.ReadLine());

        if(i % 2 == 0)
        {
            Console.WriteLine("Enter Number is an Even Number");
            Console.Read();
        }

        else

        {
            Console.WriteLine("Enter Number is an Odd Number");
            Console.Read();
        }
       
    }
}




This is a C# Program to add two numbers with the given values .

Program/Source Code | Add Two numbers in c#

Here if a given firstName and Lastname value and then placed these two value in result section which gives you the

actual result of the code .

Program/Source Code

Here we write our Second program of add two values firstname and second name in c#

using System;
public class AddTwoNumbers
{
    public static void Main(string[] args)
    {

        int firstNumber = 20;
        int secondNumber = 10;
        int result;

        result = firstNumber + secondNumber;
        Console.WriteLine("{0} + {1} = {2}" , firstNumber , secondNumber , result);
            
       
    }
}
When we run the program, the output will be

5 + 10 = 15





This is a C# Program to add two numbers with the given values .

Program/Source Code | Get Input From User in c#

Here is the example of get input from the user in c# example user can use

Console.ReadLine();

is used to get the user input through the keyboard in c# . In this example i have explain about about how user can take input from the user by keyboard.

Program/Source Code

Here we write our 3 program of Getting input from keyboard to user in c#

using System;
public class TakeInputExample
{
    public static void Main(string[] args)
    {

        string userInput;
        Console.WriteLine("Enter a input");
        userInput = Console.ReadLine();
        Console.WriteLine("you have entered {0}", userInput);
       
    }
}
When we run the program, the output will be

Enter a input
wow its works!!!
you have entered wow its works!!!

free websites to download for ree

Top Stunning Free Websites to Download Responsive HTML Templates 2021

Sticky post
Top Stunning Free Websites to Download

If you are looking for the best professional , Responsive, stunning , eye- catching , free websites for your Next project and meanwhile you are dealing with some budget problems . So don’t worry about it. I will Exclusively give you Top Stunning Free Websites to Download for your next project .

I will put all the list of 2020 modern responsive website in one place . Because In today’s era no one have time to make there own template moreover, every wants to wrap things in no time .

Therefore, to avoid these type of issues i will show you some best and free ways to download and even you can use these templates to commercially without any copyright claim. In this post I will show you all the websites who make freebies for user to use freely . So let’s dive in .




Websites offers Free Beautiful Themes and Templates.

Here is the list where you can download free , commercially Top Stunning Free Websites to Download and even modify these templates.

1. CRUIP

Free Beautiful  Themes  and Templates.

It is the website who sell there html templates in the online market . If you have any desires to download free html from these sites you can easily download free templates by just going to the https://www.cruip.com/free-templets and where you can buy these premium html Themes and templates for absolutely free . There are many free html templates available. Hurry up! download these templates and use it in your personal projects.





2. Colorlib

Free Beautiful  Themes  and Templates.
html

It is the another website where you can download free html templets .These templat’s are my favourite because it provides premium templets as well as freebie templats. If you want to buy free templat’s with numbers of categories then probably you should pick it as an option for sure . . Go ahead and Download freebie templat’s for your project.





3. Mobirise

Lets talk about mobirise which is the another source of html templates, from where you can download thousands of websites templates. One of the most useful website to download html templates . Moreover, this website is better than the above ones because of it’s interface which helps us to navigate to the page easily. Therefore , this website seems a great source of free templates to me , where you can find new and updated html templates everyday for your projects without any restrictions .





4. UpLabs

free html templates  website with source code
free html templates website with source code

This website house so much of creative templates. You can download free html page for your website easily . This is an online html market place where tons of designers share there work on itand provides different resources related with illustration, html templates, icons and many other resources available .





5.Dribble

it is an online platform for designer community presenting there work (user-made) . The main goal of this website is whether you are a graphic designer, a vector designer , or an illustration designer , you all can communicate among each other .

The main Goal of dribble as a self promotional and networking platform is for :

  • Graphic Designer
  • Illustation
  • Web designer
  • photography
  • and many creative area covered by dribble

In addition designers also posting there screen shots along with designer also convert these designs into html/css version any one can use and modify as per there requirement. So don’t miss the popular tag on driible for free templets here is the list below :





6. Bootswatch

free themes for websites with source code

Bootswatch provides free theme for Bootstrap . if you want a mobile friendly website so this website is best option for your next project . you have to follow only few stepts and then you can easily download html templates that are free to download .you can also downloads code snippets which is quite and free to use facilities for you project Hereare the list of some bootstrap snippet examples are :

  • Cerulean
  • cosmo
  • cyborg
  • Darkly
  • Fatly

As well as you can find many code blocks for html templates. So go ahead and do visit this site and download your free templates for your next project.





7. Themesforapp

free bootstrap websites for free html css

Thesforapp is a website where you can download bootstarp themes and landing pages for your website even you can modify & commercially use in your Projects. you have to just sign up and download the free bootstrap html templets .





8. Freehtml5

Top Stunning Free Websites to Download html templet with source code

This website is my favourite list among all the list because this website provides hundreds of free html templets . This website provides multipurpose free of cost templates . You can Commercially used these website in your project so go and visit this website.

  • Gaming Templates
  • Multiporpose fully Functional website
  • Roxy: Free templates
  • Aline and many more.




9.Grayic

Top Stunning Free Websites to Download

Grayic is the another website where you can download free templates for websites . Over 5000 peoples are using shades theme or html templates for there projects. You can use shades templates to build and promote your business with Top Stunning Free Websites to Download free list .

You can create your own mobile landing page as well as fully responsive and runs perfectly in your mobo devices .





10. Free-Css

Free Websites to Download with source code

over 3072 Free templets are avalable on this site and you can easily modify these templates . So without wasting any time so and visit this site so you can get the premium templates for your next project .

I really hope you get whatever you were looking for. These above given websites are free of cost and easy to approach.







People are also reading:

cryptocurrency website landing page source code

Crypto-currency website| Source Code Free Download

Hi Guys? in this post, I will provide you the javascript project with the source code which is absolutely free to download. so read each and every line. So that you easily understand what is running in the code structure Cryptocurrency website Source Code Free.

output file

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Technology website</title>
		<link rel="stylesheet" href="style.css">
	</head>
	<body>
		<header>
			<div class="navbar">
				<div class="logo">
					<img src="logo.png" alt="" class="logo_img">
					
					<ul>
						<li><a href="#">Home</a></li>
						<li><a href="#">Product</a></li>
						<li><a href="#">About-us</a></li>
						<li><a href="#">Contact-us</a></li>
					</ul>					
				</div>
				<div class="title">
					<p>Cyber Technology</p>
					<p class="title_p">Technology-ERA</p>
					<small class="title_p2">Best place to adapt your power technology. which  will give <p>you
					strength.Best place to adapt your power technology.</p> <p>which
				will give you strength</p></small>
				<div class="button"><a href="#" class="button_link">Explore</a></div>
			</div>
			
			<img src="pic.png" class="pic" alt="">
			
		</div>
		
	</header>
	
</body>
</html>

CSS File source code here

this source code mainly for the decoration part so you can download this source and and use it in your website as well for persional use . so feel free to use this website landing page decoration file and and decorate your markup and Source Code Free.


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&display=swap');

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
}

header{
	background-color: #372756;
	width: auto;
	height: 100vh;

}

.logo_img{
	margin-left: 152px;
}

.logo_text{
	display: inline-block;
	margin-left:197px;
	position: absolute;
	bottom: 20px;
}

ul{
    float: right;
    list-style: none;
    margin-top: 20px;
}

ul li {
    display: inline-block;
}

ul li a 
{
    list-style: none;
    text-decoration: none;
    color: white;
    padding: 6px 20px;
    font-weight: 700;
    transition: 0.6 ease;

}

ul li a:hover{
    background-color: white;
    color: black;
    
}

.title{
	font-size:30px;
    position: absolute;
    top: 40%;
    margin-left:152px;
    font-size: 32px;
    font-weight: 200;
    
    color: white;
}

.title_p{
	font-size: 44px;
    font-weight: 600;
}
.title_p2{
	margin-bottom: 2px;
	font-size: 14px;
	line-height: 22px;
	position: relative;
    bottom: 7px;
	
}

.button
{
	position: relative;
	top: 7px;
}

.button_link{
	text-decoration: none;
	font-size: 20px;
	padding:5px 40px;
	border-radius: 30px;
	
	background-image: linear-gradient(to right, #669ce6,#b667dd,#f530c9);
		color: white
}

.pic{
	float: right;
	position: relative;
	top: 160px;
	right: 100px;
}

.pic {
    
    width: 320px;
    height: 320px;
    
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

so i have mention all the Source Code Free source code of this website if you have any question regarding this website landing page please feel free to comment in the bottom section and give your suggestion and your valuable comment to so that i will give answer to each and every question of the comment too.

Powered by ziontutorial & DEV Community 👩‍💻👨‍💻 © 2016 - 2023. ziontutorial.com