Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2 #include <stdio.h>
- 3 #include <stdlib.h>
- 4 void graph(int count);
- 5 int main(void)
- 6 {
- 7 int value;
- 8 value = 2;
- 9
- 10 while(value<=64) {
- 11 graph(value);
- 12 printf("Value is %d\n", value):
- 13 value = value * 2;
- 14 }
- 15 return 0;
- 16 }
- 17 void graph(int count)
- 18 {
- 19 int x;
- 20
- 21 for(x=0; x<count; x=x+1)
- 22 putchar('*');
- 23 putchar('\n');
- 24 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement