C Programming Awareness and Practice
A Student Effort .... By Shshank Singhal Ajmer, Rajasthan, India
Pages
HOME
BASIC
RECURSION
ARRAY
STRINGS
CONVERSIONS
Q. Print the following series 7,77,777,7777,77777 ?
THE OUTPUT WOULD BE
#include<stdio.h>
#include<conio.h>
void main( )
{
clrscr( );
float a=0,i;
for(i=1;i<6;i++)
{ a=a*10+7;
printf("%.0f,",a);
}
getch( );
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment