Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Midterm practice, turn into for loop
//gcc 5.4.0 #include <stdio.h> int main(void) { int num, result, counter; printf("Enter a positive number:\n"); scanf("%d", &num); result = 1; counter = 1; if (num != 0) do{ result *= 2; counter++; }while (counter <= num); printf("Two raised to the %d power is:%d\n", num, result); }
run
|
edit
|
history
|
help
0
Ordered Openmp
If Statement/ Decrement practice
18BCE2182 ASSESS_1 Q1-9
Conditional logic.c
tst1.c
mod 4
edmond@DESKTOP-M2BC2LH
algo de avance
BigInteger maxMinSum
FunPointBreakfast