Posts

Practice for HTML and CSS Web Site | Practice Project Using HTML and CSS | HTML and CSS Project

Image
  <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=     , initial-scale=1.0" >     < title > Best Online Food Delivery Service in India </ title >     < link rel = "stylesheet" href = "css/Style.css" >     < link rel = "preconnect" href = "https://fonts.googleapis.com" > < link rel = "preconnect" href = "https://fonts.gstatic.com" crossorigin > < link href = "https://fonts.googleapis.com/css2?family=Aclonica&display=swap" rel = "stylesheet" >         </ head > < body >     < nav id = "navbar" >         < div id = "logo" class = "logo" >             < img src = "img/logo.jpg" alt = "MyOnlinemeal.com" >               ...

ARRAY IN C#

Image
 //int[] array = new int[5];             //array[0] = 55;             //array[1] = 563;             //array[2] = 56;             //array[3] = 586;             //array[4] = 556;             //Console.WriteLine(array[2]);             //Console.ReadLine();             //string[] array = new string[4];             //array[0]="ashish";             //array[1] = "aman";             //Console.WriteLine(array[1]);             //int[] array = new int[]{1,2,3};             //Console.WriteLine(array[2]);             //string[] array = { "ashish","aman"};        ...

Multiplication of three numbers in C#

  Write a C# Sharp program to print the output of multiplication of three numbers which will be entered by the user Test Data: Input the first number to multiply: 2 Input the second number to multiply: 3 Input the third number to multiply: 6 Expected Output: 2 x 3 x 6 = 36 solution             int a, b, c, total;             Console.WriteLine("Input the first number to multiply");             a =Convert.ToInt32( Console.ReadLine());             Console.WriteLine("Input the second number to multiply");             b = Convert.ToInt32(Console.ReadLine());             Console.WriteLine("Input the third number to multiply");             c = Convert.ToInt32(Console.ReadLine());             total = a * b * c;             C...

Function Question in C# program

Image
Question Write a Program in C# to Create a function for the Sum of two number  Enter a first number : 5 Enter  second number : 5 Expected Output  The Sum of two number is : 10 solution:-   using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication14 {     class Program     {         public static int sum (int a,int b)         {             int Total;              Total= a + b;              return Total;         }         static void Main(string[] args)         {             Console.WriteLine("Enter first Number");             int n1 =Convert.ToInt32( Console.ReadLine());           ...

switch in c#

 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page {     protected void Page_Load(object sender, EventArgs e)     {     }     protected void Button1_Click(object sender, EventArgs e)     {         //int a=0, b=0,c=0;         //a =  Convert.ToInt32(txt1.Text);         //b = Convert.ToInt32(txt2.Text) ;          //c = a + b;         //Label1.Text = Convert.ToString(c);         cal("+");     }     protected void Button2_Click(object sender, EventArgs e)     {         cal("-");              }     protected void Button3_Click(object sender, EventArgs e)     {   ...

HEADING,PARAGRAPH, BACKGROUN COLOUR .HTML CODE

 <html> <head> <style> body {background-color: powderblue;} h1   {color: blue;} p    {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>

PROGRAMING TWO NUMBER AAD IN VISUAL STUDIO, C# .NET FREAMWORK CODE

Note: Please check Capital letter or small letter in coding int total= convert.Toint32(Textbox1.text)+connvert.Toint32(Textbox2.text); label1.text=convert.Tostring(total);