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
Answers were Sorted based on User's Feedback
Answer / vadivelt
#include<stdio.h>
#include<conio.h>
void main()
{
int no, i, j;
printf("ENTER THE NO:\n");
scanf("%d", &no);
printf("\nOUTPUT IS:\n");
for(i = 0; i<=no; i++)
{
for(j=0; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / 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 |
i want to job in your company, so how it will be possible.
Calculate 1*2*3*____*n using recursive function??
Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer
hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES
What do you mean by keywords in c?
What are qualifiers?
HOW CAN ADD OUR FUNCTION IN LIBRARY.
Define the scope of static variables.
Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
What is the Difference between Class and Struct?
what is difference between procedural language and functional language ?