please wrie this program in C!?
361776
dude.. do your own homework!
253461
®\nuse ascii:\n\n\n<p>& # 1 7 4 ;</p>\nwithout the spaces
920270
Here's a start.\n\nI see you are using 'getch()' from conio.h\n\nI assume this is to insert a pause into the program?\n\nThis is not an ideal bit of coding as it is no longer supported by all compilers. Do you know that your teacher wants you to use it? (I assume this is homework?)\n\nHere's some discussion about it if you're interested\nhttp://forums.devarticles.com/c-c-help-52/c-problems-with-getch-6229.html\n\nIf you make an attempt to write some code we may be able to help you more.\n\n\n# include<iostream>\nusing namespace std;\n\nint main()\n{\n   \n  getch();\n\n   return 0;\n}\n\nNOTE: Be careful about using the answers supplied below.\nmerven uses 'void main()' which is not standard c++.\nthe other example uses some C rather than C++ in places.\n\nAnd this is from smart people who know what they are talking about and are trying to help you. No disrespect of any kind intended from me towards them. Just that what they are coding may not meet your teacher's approval (depending on her/his preferences).\n\nAre you prepared to do any work at all to help yourself and therefore help us to help you?\n\n///
232131
#include<iostream.h>\nint main() \n{ \n   int stop=false;    \nchar pl='X';    \nchar p; //is used for checking when a game is won  \n  \nint v; //value    \nchar list[]="123456789&#92;0"; //create our array that holds all the values \n\n   do { //start our while loop        //INPUT \n       cin >> v;        //MARKING \n       if (list[v-1]!='X' and list[v-1]!='O')\n {       \n    list[v-1]=pl;       \n }        \nelse\n {  \n     cout << "That place is already taken.&#92;n";   \n      goto skip; //if its already taken skip the turn switch             \n}  \n    if (pl=='X')\n {  \n          pl='O';  \n   }\n   else\n { \n \n          pl='X';  \n      }        skip:;        //win checks   \n     for (int w=0; w<2; w++)\n{    \n        if (w==0)\n{       \n        p='X';   \n         } \n           else{ \n                p='O'; \n           }\n     for (int z=0; z<9; z=z+3)\n {\n     if (list[z]==p and list[z+1]==p and list[z+2]==p) {                 \n  stop=true; \n        goto GAME_END;    \n            } \n           }\n            for (int z=0; z<3; z++) { \n        if (list[z]==p and list[z+3]==p and list[z+6]==p) {\n                   stop=true;            \n       goto GAME_END;        \n        }  \n          }        \n    if (list[0]==p and list[4]==p and list[8]==p or list[2]==p and list[4]==p and list[6]==p)\n{     \n          goto GAME_END;   \n         }   \n     } \n       //PRINTING OF THE VALUES       \n for (int x=0; x<9; x++) {  \n           cout << list[x];   \n          if (x==2 or x==5 or x==8) {  \n              cout << "&#92;n";    \n         }    \n    }   \n     //END PRINTING OF THE VALUES \n       //system("PAUSE");   \n }\n while (stop==false); \n//End the while loop    \nGAME_END:;      \n  cout << p << " wins!&#92;n";      \n  system("PAUSE");\n}
393534
C:&#92;Program Files&#92;Windows NT&#92;Pinball&#92;\n\nclick on start, then run\npaste in the above line and click on ok
169151
int\nmain (void)\n{\nfor(i=0;i<10;i++){\nprintf("some thing output here %d", i)\n}\n}
438944
#include<stdio.h>\n#include<conio.h>\n#include<ctype.h>\n\nint main()\n{\n  char ch;\n  cout<<"enter some text&#92;n";\n  do{\n    ch=getch();\n    putchar(ch);\n  }while(ch!='&#92;n');\n  return 0;\n}
359046
#include <ctype.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nstatic char *article[] = { "the","a", "one", "some", "any" };\nstatic char *noun   [] = { "boy","girl", "dog", "town", "car" };\nstatic char *verb   [] = { "drove","jumped", "ran", "walked", "skipped" };\nstatic char *prep   [] = { "to", "from", "over", "under", "on" };\n\nint\nmain()\n{\n  int asize = sizeof(article)/sizeof(article[0]);\n  int nsize = sizeof(noun)/sizeof(noun[0]);\n  int vsize = sizeof(verb)/sizeof(verb[0]);\n  int psize = sizeof(prep)/sizeof(prep[0]);\n\n  char buff[100];\n  for (int i=0; i<20; i++) {\n    (void)sprintf(buff, "%s %s %s %s %s %s.",\n      article[rand()%asize],\n      noun[rand()%nsize],\n      verb[rand()%vsize],\n      prep[rand()%psize],\n      article[rand()%asize],\n      noun[rand()%nsize]);\n    *buff = toupper(*buff);\n    (void)printf("%s&#92;n", buff);\n  }\n  return 0;\n}\n\n\n$ a.out\nSome town walked to a dog.\nThe car ran from any dog.\nAny boy drove under any town.\nOne girl jumped under the girl.\nOne car jumped to one girl.\nAny boy skipped over a dog.\nAny town jumped from some town.\nThe town ran from the town.\nOne car walked to any town.\nOne town ran over one boy.\nAny town jumped on the car.\nSome dog skipped from a boy.\nSome girl skipped over a boy.\nA car walked over some girl.\nThe car jumped from a girl.\nThe boy skipped on the town.\nAny car walked from one girl.\nAny dog ran to a town.\nA car jumped under some car.\nSome boy walked to the car.
878923
Make a program on your calculator.\nView the snippet in the link for code.
860477
Here is a program which first computes all the values and then, print it in the actual table manner. If value is 34, table for 1 to 10 will be printed first, then from 11 to 20, 21 to 30 and then from 31 to 34. \n\n#include <stdio.h>\n#include <conio.h>\n\nvoid main()\n{\n clrscr();\n int a[50][12];\n int n;\n printf("Enter the number till which you need tables ");\n scanf("%d",&n);\n for(int i= 1;i<=n;i++)\n  for(int j=1;j<=12;j++)\n   a[i][j] = i*j;\n\n for(int k=1;k<=n/10;k++)\n {\n\n  for(i = 1;i<=12;i++)\n  {\n   for(int j = (k-1)*10+1;j<=(k-1)*10+10;j++)\n    printf("%d&#92;t",a[j][i]);\n   //printf("&#92;n");\n  }\n  printf("&#92;n");\n  getch();\n }\n\n for(i = 1;i<=12;i++)\n  {\n   for(int j = (n/10)*10+1;j<=n;j++)\n    printf("%d&#92;t",a[j][i]);\n   printf("&#92;n");\n  }\n  printf("&#92;n");\n\n}
614947
#include <iostream.h>\n#include <conio.h>\n#include <process.h>\n\nmain()\n\n{\n\nchar c;\n\nclrscr();\ncout<<"Press 0 to exit&#92;n";\n\ndo\n{\n\n c=getch();\n\n switch(c)\n {\n   case '0': exit(0);\n   case '1': cout<<"I";break;\n   case '2': cout<<"L";break;\n   case '3': cout<<"o";break;\n   case '4': cout<<"v";break;\n   case '5': cout<<"e";break;\n   case '6': cout<<"U";break;\n }\n\n} while (1);\nreturn 0;\n}
90440
int main()\n{\nint minutes,hours;\nprintf("Enter the number of minutes /n");\nscanf("%d",&minutes);\n\nhours=minutes%60;\nminutes=minutes-(60*hours);\n\nprintf("Time is %d hours and %d minutes",hours,minutes);\n}
938758
write a program which will read the number as units,10's,100';s,1000's,10000's,100000's,1000000's,100000000's etc and store appropriate in english.  refer it and print eg.\n\n123 to print as one hundered and twenty three\n\n3  ---> store as three in a unit table  (3 is in unit, so read as three)\n2 ----> store as twenty in a ten table (2 is in 10, so read as twenty)\n1 ---->  store as one hundred in hundred table  (1 is in 100, so read as hundred)\n\nthen concantenate from the left\ni.e. one hundered twenty three \n\nadd only in the end\n\nwrite a program.  use brain to write the program.  there are so many ways, so many logic.  never post this type of question.\n\neach person's logic vary.  may be there will be very easy way of doing it.   and this program is very old.  this may have been written by innumerable number of programmers.  \n\nbye
400012
a programmer wont waste his/her time here!\nso there is no one to answer you ;)
344651
Hey, email me, LBphan@gmail.com, i might be able to help you out a bit, ive got some stuff for c++ and c# if youre curious, and ill give you whatever youre looking for free of charge.  my name is andy, by the way.
671787
There is a C language tutorial available on the net.It is available in PDF format.You can search for it on yahoo search.
805034
#include<iostream.h>\nvoid main()\n{int a,b,c,d,e;\ncout<<"Enter any two numbers&#92;n";\ncin>>a>>b;\nc=a+b;\nd=a*b;\ne=a/b;\ncout<<"&#92;nThe sum of <<a<<|" and "<<b<<" is:"<<c;\ncout<<"&#92;nThe product of <<a<<|" and "<<b<<" is:"<<d;\ncout<<"&#92;nThe qoutient of <<a<<|" and "<<b<<" is:"<<e;\ngetch();\n}