//interchanging the value of two variable #include<stdio.h> void main() { int a,b,t; printf(“enter the value of a and b\n”); scanf(“%d%d”,&a,&b); …
Learn Anytime Anywhere
//interchanging the value of two variable #include<stdio.h> void main() { int a,b,t; printf(“enter the value of a and b\n”); scanf(“%d%d”,&a,&b); …
//To check whether the given number is prime or not #include<stdio.h> void main() { int i, n; printf(“enter the value …
#include<stdio.h> void main() { int i, j; for(i=6;i>=0;i–) { for(j=0;j<=i;j++) printf(“\tNEPAL”); printf(“\n”); } for(i=1;i<=6;i++) { for(j=0;j<=i;j++) printf(“\tNEPAL”); printf(“\n”); } } …
#include<stdio.h> void main() { int i,j; for(i=1;i<=10;i++) { for(j=1;j<=i;j++) printf(“\t*”); printf(“\n\n”); } } output
//Program to check whether the number is even or odd #include<stdio.h> void main() { int n; printf(“enter the value of …