print 1-50 with two loop & two print Statement

Answer Posted / ravindra kushwaha

for(int i=1;i<=25;i++)
{
printf("%d",i)
}
for(int j=25;j<=50;j++)
{
printf("%d",j)
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to print "hello world" without using a semicolon?

587


What is the difference between new and malloc functions?

570


What is extern c used for?

563


What is meant by type specifiers?

653


What does the && operator do in a program code?

690






a value that does not change during program execution a) variabe b) argument c) parameter d) none

686


What is structure in c explain with example?

627


How can I do peek and poke in c?

611


What is function prototype in c language?

606


Explain what is a stream?

604


What is stack in c?

601


What is the purpose of void pointer?

590


Why is event driven programming or procedural programming, better within specific scenario?

1947


What is this pointer in c plus plus?

586


Why static is used in c?

614