write a program whose output will be-
1
12
123
1234
Answer Posted / abhishek
#include <iostream>
using namespace std;
int main() {
int i,c=1,p=0;
for(i=0;i<4;i++){
p=p*10+c;
cout<<p<<"
";
c++;
}
return 0;
}
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is the difference between functions getch() and getche()?
Explain what is meant by 'bit masking'?
What is difference between class and structure?
What is function in c with example?
What are header files why are they important?
How do you initialize pointer variables?
Explain about the constants which help in debugging?
With the help of using classes, write a program to add two numbers.
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
What is the difference between strcpy() and memcpy() function in c programming?
Explain what are the different file extensions involved when programming in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
C program to find all possible outcomes of a dice?
Is there any possibility to create customized header file with c programming language?
What is d'n in c?