Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Test expression



Comment



Working with switch case



Header file



" ; " after loop




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