Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Header file



Working with switch case



Test expression



" ; " after loop



Iterative statement




Print first N natural number




// AHF C PROGRAM SOLVING

//solving here ITERATIVES STATEMENTS type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int i,n; pf("Enter any integer number: "); scanf("%d",&n); for(i=0;i<=n;i++) pf("%d ",i); return 0; }
OUTPUT:


© 2018 - All rights reserved