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
Differentiate between calloc and malloc.
In c language can we compile a program without main() function?
The statement, int(*x[]) () what does in indicate?
What do you mean by c?
What does c mean in basketball?
What is the difference between declaring a variable and defining a variable?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Can you subtract pointers from each other? Why would you?
What is a newline escape sequence?
Are pointers really faster than arrays?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
How to implement a packet in C
Why do we need a structure?
Which is best linux os?
Differentiate between ordinary variable and pointer in c.