Friday, December 16, 2011

Programme for 1 to n print out of number in visual C++

#include<stdio.h>
int main()
{
int i=1;
int ver;
printf("Input a veriable");
scanf("%d",& ver);
for( ;i<=ver;i+=1)
{
    if(i!=3)
    {
        printf("  %d",i);
    }
    else
    {
        printf("  %d",i);
    }
}
return 0;
}

No comments:

Post a Comment