hey guys,sorry guys i dono to explain it...but atlast ,i cud do it myself...This is the program :
for(i=1; i<=limit; i++)
{
printf("%d", i);
for(j=1; j<i; j++)
{
k=1;
...
Type: Posts; User: cheeta
hey guys,sorry guys i dono to explain it...but atlast ,i cud do it myself...This is the program :
for(i=1; i<=limit; i++)
{
printf("%d", i);
for(j=1; j<i; j++)
{
k=1;
...
like,if the number is 20,it has to be like
1 5
2 6 9 12
3 7 10 13 15 17
4 8 11 14 16 18 19 20
see,the thing is it has to be with 4 rows alone...
help me with this 15 numbers...
thanks claudiu, for ur reply i am actually new to c...i actually need the output as :
1
2 5 8
3 6 9 11 13
4 7 10 12 14 15
#include<stdio.h>
//main function..
int main(void){
int i,j,k;
int n=3;
for(i=0;i<=3;i++) {
j=1;
while(j<=n) {
...
hi,
i need a program to generate random numbes upto 100 without using rand() function in c?...is there any way to do this task...tell ur suggestions plz...thanks in advance..
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
char sentence[256];
printf("\nEnter the sentence : ");
fgets(sentence,255,stdin);
fputs(sentence,stdout);
}