write a program whose output will be-
1
12
123
1234
Answer Posted / tanish kumar
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr ();
int i, j, n;
cout <<"Enter the value of n=";
cin>>n;
for (i=1;i <=n;i++)
{
for (j=1;j <=i;j++)
{
cout <<j <<" ";
}
cout <<endl;
}
getch ();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Write a program to print numbers from 1 to 100 without using loop in c?
What is multidimensional arrays
Which is better oop or procedural?
What language is lisp written in?
Does c have function or method?
What does sizeof int return?
What is a structural principle?
What are unions in c?
Difference between Function to pointer and pointer to function
Compare and contrast compilers from interpreters.
What is define directive?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Where is c used?