My Name Is Salman Masood , I am Computer Science &Amp; Maths Graduate from University of Karachi, Pakistan , Teaching Is My Passion and My Aim Is to Deliver All My Knowledge among Those Students Who Can'T Afford Tutors or Expensive Institute Fees. I Will Be Keep Sharing My All Knowledge and Information with You .... Remember Me in Your Prayers !
Thursday, 14 December 2017
Learn C language Part 8 how to show Maths tables using for loop
#include <stdio.h>
#include <conio.h>
main()
{
int t,n,i;
printf("Enter the number which table you want to show: ");
scanf("%d",&t);
printf("Enter the limit of table: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
printf("%d x %d = %d\n",t,i,t*i);
}
}
Learn C language Part 7 sum of natural n numbers & limit of a integer v...
#include <stdio.h>
#include <conio.h>
main()
{
//1 -100
int i=0,n;
float x;
l1:
x=0;
printf("Enter the number: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
x=x+i;
}
printf("sUM OF 100 = %.1f",x);
printf("\n\n\n");
printf("----------------------------------------------");
goto l1;
}
Learn C language Part 6 (How For Loop Works in all Programming languages)
#include <stdio.h>
#include <conio.h>
main()
{
int i=0;
for(i=1;i<=10;i++)
{
printf("salman%d\n",i);
}
printf("Loop break");
}
Subscribe to:
Posts (Atom)
Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC
Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...
