Coding | Mcqs | Multiple choice questions | Informative | Computer Science | Engineering | Aptitude | Quants | Verbal

INFEED

Print Integers until 10 is encountered

 #include<stdio.h>

int main()

{

int a;

while(scanf("%d",&a)>0)

{
if(a==10)

break;

else

printf("%d ",a);

}


}

Post a Comment

Previous Post Next Post