Wednesday, 25 April 2018

Program to print counting as per requirement of user

/* counting as per requirement of user */
# include <stdio.h>
void main ()
{
int a,b ;
clrscr () ;
printf ("/n enter value of a :") ;
scanf ("%d", & a) ;
printf ("/n enter value of b :") ;
scanf ("%d", & b) ;
while ( a<=b)
{
printf ("/n %d", a) ;
a++ ;
}
getch () ;

No comments:

Post a Comment

Featured post

Kalgudi Interview Round!!

Those who cleared the second round of kalgudi got an email from exceller to complete their Kalgudi Interview Round. So here we will discuss ...