Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / gunabalan
void main()
{
int i=1;
e:
printf("%d\t",i);
i++;
if(i<=100)
goto e;
}
| Is This Answer Correct ? | 36 Yes | 12 No |
Post New Answer View All Answers
What is a void pointer? When is a void pointer used?
What is c mainly used for?
Write a program to print fibonacci series using recursion?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What should malloc() do?
Explain enumerated types in c language?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
code for replace tabs with equivalent number of blanks
Why is sprintf unsafe?
What is the explanation for cyclic nature of data types in c?
Why flag is used in c?
Do you know pointer in c?
Can we increase size of array in c?
What are the various types of control structures in programming?
How do I create a directory? How do I remove a directory (and its contents)?