Posts

Showing posts with the label Easy C# Blog

C# Program for Coin Vending Machine

                                                              C# Program for Coin Vending Machine Posted by Libin Antony@10-02-2023 IST : 09:12:23 The code uses the C# programming language to simulate a coin vending machine that accepts coins in increments of 0.25, 0.5, 1, and 2. The program calculates the total amount of coins inserted by the user, and compares it to the price of the item being sold by the machine. When the total amount equals or exceeds the item price, the transaction is complete and the item is dispensed.                                                                  Program using System; namespace CoinVendingMachine {     class Program...

General C# Programs for Beginners

Posted by Libin Antony on 17-01-2023   General C# Programs for Beginners In this blog we are going to discuss about the basic C# Programming., Below are the some of the programs we are going to discuss. C# Programs are as similar to javascript programming, some keywords are different from Java script. Solved C# Program Question-Answer follows after the questions. Program-1 Input a code [C|S|V] and a character .Then find a)if the code is ’C’ then find the character is capital or not b)if the code is ‘S’ then find the character is small or not c)if the code is ‘V’ then find the character is vowel or not Program-2: Check Given Number is Prime or not using C#. Program-3: Swap First and Last Elements of the Given Array Program-4 Design a program to Input a Number. Check if it is a positive three digit number or not Program-5 Write a Program to input the height of two students. Print the height of the tallest person Program-6 Input a code [a/b/c] and two numbers a)Code is a ,the...