- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 4
6 Posted Topics
[code=c] #include <stdio.h> void main() { int i,num,j; printf("enter a num"); do{ scanf("%d", &num); }while (num<1); for(i=1; i<=num; i++) { printf("\n"); for(j=0;j<i;j++) printf("*"); } printf("\n"); } [/code] hope this helps :)
i have a problem with a program which gets a matrix[3][3] (with values 1-20.) i want to print the index of cells whose surrounding cells all have lower values. in a matrix 0 0 0 0 1 0 0 0 0 it supposed to print only [1][1]. can someone look …
two static arrays size 10 need to be copied to an empty target array size 20. like this: you copy from the first array the nums till arr1[i] = 0 then you switch to the second array and copy to the nums till arr2[i] = 0. then you switch back, …
i never seen one only with 2 vars. but i wrote one yesterday with recursion, maybe not exactly what you're looking for, but it's a bit diff from yours [code] void pyramid (int x, int size) { int i=0; int temp =0; if(!x) return; pyramid(x-1,size); temp = size - x; …
[code=c] /*the program gots a string, and supposed to copy to the destination string every letter only once, and after a letter a num - a counter how many times a letter appeared in the original string for example - for kuku it should return k2u2 - but it returns …
i got an exercise in which i've to write a code that does: when you enter the day of the month (f.e. 21th) and the day (f.e. Sunday) and the month (f.e. august) will display if in the given month there is a 13th Friday. so i made a prog. …
The End.
yila