Input any no. and print all the the numbers that comes
before it like this
for e.g input = 4
0
01
012
0123
01234
plz answer it 2day
Answer Posted / anurag
#include<iostream>
using namespace std;
int main()
{
int a=4;
for(int i=0;i<=4;i++)
{
int j=0;
while(j<=i)
{
cout<<j;
j+=1;
}
cout<<endl;
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is define c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
given post order,in order construct the corresponding binary tree
What is spark map function?
How can I find the modification date of a file?
What is meant by operator precedence?
Why static is used in c?
What is a const pointer?
What are the modifiers available in c programming language?
What is the difference between #include and #include 'file' ?
Why is c known as a mother language?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
If fflush wont work, what can I use to flush input?
What is typedf?
What does %p mean c?