can please someone teach me how to create this program using
while statement.. this is the output should look like

0
2
4
6
8
10

-thanks.. :) need it asap...

Answer Posted / ajit kumar shrivastav

#include<conio.h>
#include<stdio.h>
void main();
{ flaoat num;
scanf(enter a number);
printf("%f",res);
res=num*2;
getch();
}

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3108


Is it better to use a macro or a function?

645


What are the storage classes in C?

617


Explain high-order and low-order bytes.

659


What is wrong with this program statement?

602






What is a pointer on a pointer in c programming language?

611


what does static variable mean?

643


What is wrong with this declaration?

606


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

594


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1581


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1635


Explain how can you tell whether a program was compiled using c versus c++?

569


What is pointer to pointer in c with example?

541


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1621


What are formal parameters?

649