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 !
Sunday, 10 December 2017
Learn C language Part 3 swapping the values of two variables
#include <stdio.h>
#include <conio.h>
main()
{
int x,y,z;
printf("Enter the value of x: ");
scanf("%d",&x); //5
printf("Enter the value of y: ");
scanf("%d",&y);//10
z=x; //z=5
x=y; //x=10
y=z; //y=5
printf("\n\n\n\nx=%d",x);
printf("\ny=%d",y);
}
Learn C language Part 3 swapping the values of two variables
#include <stdio.h>
#include <conio.h>
main()
{
int x,y,z;
printf("Enter the value of x: ");
scanf("%d",&x); //5
printf("Enter the value of y: ");
scanf("%d",&y);//10
z=x; //z=5
x=y; //x=10
y=z; //y=5
printf("\n\n\n\nx=%d",x);
printf("\ny=%d",y);
}
Learn C language Part 3 swapping the values of two variables
#include <stdio.h>
#include <conio.h>
main()
{
int x,y,z;
printf("Enter the value of x: ");
scanf("%d",&x); //5
printf("Enter the value of y: ");
scanf("%d",&y);//10
z=x; //z=5
x=y; //x=10
y=z; //y=5
printf("\n\n\n\nx=%d",x);
printf("\ny=%d",y);
}
Learn C language Part 2 scanf command, sum of two integer numbers
#include<stdio.h>
#include<conio.h>
main()
{
int x,y;
int z;
printf("Enter the value of x :");
scanf("%d",&x);
printf("Enter the value of y :");
scanf("%d",&y);
z=x+y;
printf("value of z = %d",z);
}
Learn C language Part 2 scanf command, sum of two integer numbers
#include<stdio.h>
#include<conio.h>
main()
{
int x,y;
int z;
printf("Enter the value of x :");
scanf("%d",&x);
printf("Enter the value of y :");
scanf("%d",&y);
z=x+y;
printf("value of z = %d",z);
}
Learn C language in very easy manner ( Part 1 Printf command)
#include<stdio.h>
#include<conio.h>
main()
{
printf("Hello world\nHello salman");
}
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 ...
-
Load event: pictureBox3.Image = Image .FromFile( @"C:\Users\salman\Documents\Visual Studio 2013\Projects\WindowsFormsApplication3\W...