pe-c-printf.blogspot.com
c++ printf: What is the use of \r in the c language? please tell the output for the code?
http://pe-c-printf.blogspot.com/2010/05/what-is-use-of-r-in-c-language-please.html
Monday, May 24, 2010. What is the use of r in the c language? Please tell the output for the code? Please tell how the answer is coming;the compiler showed it as "hai". But why the answer is hai please tell how to arrive at the answer. What is the use of r in the c language? Please tell the output for the code? 2) but ' r' acts as carriage return (feeds at beginning), here 'ha' string after ' r' replaces first 2 letters from 'asi' %26amp; so it becomes 'hai' now. So the output is "hai". Is it OK? Reply: ...
pe-c-printf.blogspot.com
c++ printf: May 2010
http://pe-c-printf.blogspot.com/2010_05_01_archive.html
Monday, May 24, 2010. Explain the following program in C? Float j=3.5;. Explain the following program in C? Using %f notation we print a float. Here i is a integer but printing using %f notation the it will print 3.00000. But %d notation is for integer printing so if we print a float of value 3.5 then it will print 3 only. F - float printing. D - decimal printing. Reply:A simple program which prints two numbers - an integer (3) and a float (3.5). 1 The first line defines the program. 1) printf("%d",i);.
pe-c-printf.blogspot.com
c++ printf: Using the outfile in c++?
http://pe-c-printf.blogspot.com/2010/05/using-outfile-in-c.html
Monday, May 24, 2010. Using the outfile in c? I need to send a value to a outfile. That is given by printf("%d ",num) = value by a space division. How do i send it to a file,like this? Outfile %26lt;%26lt; ("a: " );. Outfile %26lt;%26lt; printf("%d ",num), %26lt;%26lt; endl;. Hope that is it. Using the outfile in c? Open the file using the constructor on the declaration, like so:. Ofstream outfile ("file.txt");. Sprintf (str, "a: %d n", num);. Outfile %26lt;%26lt; str;. Subscribe to: Post Comments (Atom).
pe-c-printf.blogspot.com
c++ printf: Help me solve this C program finding prime numbers <=n,please !!?
http://pe-c-printf.blogspot.com/2010/05/help-me-solve-this-c-program-finding.html
Monday, May 24, 2010. Help me solve this C program finding prime numbers =n,please! Include %26lt;stdio.h%26gt;. Printf(" nInput n:");. Scanf("%d",%26amp;n);. For (i=3;i%26lt;=n;i ). For (j=2;j%26lt;i;j ). If (bool=1) printf (" nPrime number:%d",i);. Sth wrong w/ this code! Help me solve this C program finding prime numbers %26lt;=n,please! Include%26lt;stdio.h%26gt;. Include%26lt;conio.h%26gt;. Int count,i=1;. Printf("%d t",i);. Just type this program and save as .c file. 160; int main() {. I'd be tempt...
pe-c-printf.blogspot.com
c++ printf: Why doesn't this C function stop to allow the user to input their name?
http://pe-c-printf.blogspot.com/2010/05/why-doesnt-this-c-function-stop-to.html
Monday, May 24, 2010. Why doesn't this C function stop to allow the user to input their name? Char NAME (void) {. Allow character name input. Char Name[21]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,. Printf(" n nPlease enter a name for your character.");. Printf(" nThe name(s) should be 20 characters or less.");. How can I get gets() to halt for user input like scanf()? Why doesn't this C function stop to allow the user to input their name? Char Name[21]={0,0,0,0,0,0,0,0,0,0,.". Just do a char name[21]. Oh, and...
pe-c-printf.blogspot.com
c++ printf: Please help me fix this c program---thanks?
http://pe-c-printf.blogspot.com/2010/05/please-help-me-fix-this-c-program.html
Monday, May 24, 2010. Please help me fix this c program- -thanks? Okeythis program works properly, all i need is to organize my results. let it display. the compound interest with the rate being is: and so on. please help. Include %26lt;stdio.h%26gt;. Include %26lt;math.h%26gt;. Double principal=1000.0;. Double rate= .05;. Int six percent;. Printf("%4s%21s n", "year", "Amount on deposit");. For(year=1 ;year%26lt;=10 ; year ). For(rate=.05; rate%26lt;=0.10; rate =.01). Printf("%4d%21.2f n"year,amount);.
pe-c-printf.blogspot.com
c++ printf: I tried to run this pgm in both turbo c&dev,i am getting error in turbo,but in dev it will compile,no res y?
http://pe-c-printf.blogspot.com/2010/05/i-tried-to-run-this-pgm-in-both-turbo-c.html
Monday, May 24, 2010. I tried to run this pgm in both turbo c&dev,i am getting error in turbo,but in dev it will compile,no res y? Include%26lt;stdio.h%26gt;. Float area,perimeter;. Printf(" n Enter the radius of a circle");. Scanf("%d",%26amp;radius);. Areaperi(radius,%26amp;area,%26amp;perimeter);. Printf(" n Perimeter=%f",perimeter);. Areaperi(int r, float *a, float *p). I tried to run this pgm in both turbo c%26amp;dev,i am getting error in turbo,but in dev it will compile,no res y? Any sugestions wo...
pe-c-printf.blogspot.com
c++ printf: Table drawing in c++?
http://pe-c-printf.blogspot.com/2010/05/table-drawing-in-c.html
Monday, May 24, 2010. Table drawing in c? Include %26lt;stdio.h%26gt;. Int j,Lim,i,flag;. Printf("Please enter a limit number : ");. Scanf("%d",%26amp;Lim);. For(i=2;i%26lt;=Lim;i ){. For(j=2;j%26lt;=i-1;j ){. Printf("%5",i, "%5d",i);. This is my code it get a number and print prime numbers between 2 and entered number i have to print that numbers in this vay. Table drawing in c? To get you started, try changing your printf to this:. Printf("%5d", i);. Subscribe to: Post Comments (Atom). Question about a...
pe-c-printf.blogspot.com
c++ printf: My answer to my c language question,pls check it for me..?
http://pe-c-printf.blogspot.com/2010/05/my-answer-to-my-c-language-questionpls.html
Monday, May 24, 2010. My answer to my c language question,pls check it for me? This is my answer to my question that i wrote yesterday. Include %26lt;stdio.h%26gt;. Include%26lt;conio.h%26gt;. Double hypotenuse(double,double);. Double hypotenuse(double a,double b). Return sqrt( a*a) (b*b) ;. Double side1,side2;. For(i=0;i%26lt;=3;i ). Printf("Enter side 1 and side 2 for triangle %d :",i 1);. Scanf("%f%f",%26amp;side1,%26amp;side2);. Printf("Hypotenuse for triangle %d is %f",i 1,hypotenuse(double,double) ;.