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
What is bin sh c?
Why is c used in embedded systems?
How do you write a program which produces its own source code as output?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Which programming language is best for getting job 2020?
Why void is used in c?
Describe how arrays can be passed to a user defined function
List a few unconditional control statement in c.
How #define works?
Do you know null pointer?
Write a program of prime number using recursion.
What is the explanation for modular programming?
C program to find all possible outcomes of a dice?
Why main function is special give two reasons?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.