Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Write a program to produce the following output:
2 3
4 5 6
7 8 9 10

Write a program to produce the following output: 1 2 3 ..

Answer / ashok kumar

void main()
int n,i,j,k=1;
printf("\n Enter a number : ");
printf(" ");
printf(" %d ",k++);

Is This Answer Correct ?    30 Yes 18 No

Post New Answer

More C Interview Questions

how to introdu5ce my self in serco

0 Answers  

what is difference between procedural language and functional language ?

4 Answers   Wipro,

Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

0 Answers  

What is structure padding in c?

0 Answers  

struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

1 Answers   Wipro,

what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,

What is c language in simple words?

0 Answers  

What is the default value of local and global variables in c?

0 Answers  

You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

0 Answers  

Write a program to compute the following 1!+2!+...n!

4 Answers  

Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.

2 Answers   Scientific Atlanta, Wipro,

Can we write a program without main() function?

9 Answers