Hello Sir, Thanks for the Solution but, can you pls. Explain
the coding for the Static Function & static variable from
the below coding....waiting for Ans.
class fact
{
public static void Main()
{
fact f=new fact();
int x=1; //Declaration of x as 1
int k=Convert.ToInt32(Console.ReadLine());
for(int i=1;i<=k;i++)
{
x= x *i;
}
System.Console.WriteLine(x);
}
}
No Answer is Posted For this Question
Be the First to Post Answer
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long
Code for Reading and writing from a file in c#?
How to Create Files by Using the FileInfo Class?
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
Write a program to count the number of characters, number of words, number of line in file.
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.
c# code to Count number of 1's in a given range of integer (0 to n)
IS Array list is generic or non generic
Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.
Code for Searching for Multiple Matches with the MatchCollection Class?