#include<stdio.h>
#include<conio.h>
void main()
{
int a=1;
clrscr();
for(a=1;a<=47*(80);a++)
{
printf("%c",1);
}
getch();
}
#include<stdio.h>
void main (void)
{
int i=1,j;
for(j=1;j<=5015;j++)
{
printf("%c ",i);
}
getch();
}
This is not a question it is a homework assignment and therefore inappropriate on WikiAnswers.
//C program to accept a string from user and //display its ascii value and //then display sum of all ascii value of strings #include<stdio.h> #include <string.h> int main() { char String[100]; int Sum,Index; Sum=0; //Sum is initially zero printf("Enter the string:\n"); gets(String); //Accept String from User for(Index=0;Index<strlen(String);Index++) { Sum+=(String[Index]); //Adds (the ASCII values of) the String characters. } printf("The sum is %d\n",Sum); //Printing it as %d gives the equivalent ASCII value. return 0; }
printf ("x")
There is no gotoxy statement in C.
auto 10 screen 1 20 circle (160,100), 50 30 end in screen 2 auto 10 screen 2 20 circle (320,100), 200 30 end by: Tariq Ismail.
Been so long since I wrote c I cant remember much about it. You will have to create a key capture process. If someone enters a charchacter have the ascii value compared to a list of instructions that you want it to perform. If 1 then replace value sent to screen with "one"If 2 then replace value sent to screen with "two"etc. It is a relatively simple program. It has just been 15 yrs or so since I have written anything so I can only give you generic examples. Hope this helps some.
write a program to print A to Z on screen in c?
ASCII is code in which computer programs are written . it is the computer machine language.if write a program in any computer language thaen it will be converted in this code.
If you look up the ASCII values for digits, you'll see that 0 = 48, 1 = 49... 9 = 57. So it's a simple matter of adding 48 to your digit to find out the ASCII value for it.
Faisal
Write a program which displays digital watch on the screen, after taking the hours and minutes from the user.
int main (void) { int i; for (i=32; i<=127; ++i) printf ("%3d: '%c'\n", i, i); }
//C program to accept a string from user and //display its ascii value and //then display sum of all ascii value of strings #include<stdio.h> #include <string.h> int main() { char String[100]; int Sum,Index; Sum=0; //Sum is initially zero printf("Enter the string:\n"); gets(String); //Accept String from User for(Index=0;Index<strlen(String);Index++) { Sum+=(String[Index]); //Adds (the ASCII values of) the String characters. } printf("The sum is %d\n",Sum); //Printing it as %d gives the equivalent ASCII value. return 0; }
nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.
printf ("x")
like this : je souris
ASCII = American Standard Code for Information InterchangeThat means that ASCII is a type of character encoding...Unless you want to write in 1's and 0's, then you must use ASCII. If you type a single character, it's most likely ASCII. To show you how ridiculous typing in binary is:011101110110100101101011011010010010000001100001011011100111001101110111011001010111001001110011 = wiki answers (lowercase)
There is not one that I know off but you could write it.