Write a program to count the number of characters, number of
words, number of line in file.
Answers were Sorted based on User's Feedback
Answer / jayakrishnan
File.ReadAllLines("").Length;
File.ReadAllText("").Split(' ').Length - 1;
File.ReadAllText("").Length
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / ashutosh mishra
#include <stdio.h>
main()
{
int i,j,n,c=0,b;
printf("enter the number to be checked\n");
scanf("%d",&n);
j=n;
for(i=1;i<n;i++)
{
b=n%i;
if(b==0)
{
c=c+i;
}
}
if(c==j)
printf("the given number is perfect number\n");
else
printf("the given number is not a perfect number\n");
getch();
}
| Is This Answer Correct ? | 5 Yes | 11 No |
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
program to reverse the order of words in a string.
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Coding for Manipulate XML File Data Using C#?
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
How to Link Different Data Sources Together?
How to Create Files by Using the FileInfo Class?
Code for Working with Files under a Directory?
Give the code for Handling Mouse Events?
Code for IP Address Comparison and Conversion in C#?
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.