Skip to content (Press Enter)
SURYAOFFICIAL

SURYAOFFICIAL

Learn Anytime Anywhere

  • Home
  • blog
  • Contact Us
  • About us
SURYAOFFICIAL

SURYAOFFICIAL

Learn Anytime Anywhere

  • Home
  • blog
  • Contact Us
  • About us

Category: Programming Language

Swap Two Numbers

2 Jul,2020 suryad5Leave a comment

//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); …

Read More

Prime Number

2 Jul,2020 suryad5Leave a comment

//To check whether the given number is prime or not #include<stdio.h> void main() { int i, n; printf(“enter the value …

Read More

Nepal Pattern Print

1 Jul,2020 suryad5Leave a comment

#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”); } } …

Read More

Pattern Print

1 Jul,2020 suryad5Leave a comment

#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

Read More

Greatest Number Among Three Numbers

30 Jun,2020 suryad5Leave a comment

//greatest number among three numbers#include<stdio.h>void main(){int a,b,c, greatest;printf(“enter three numbers:”);scanf(“%d%d%d”,&a,&b,&c);if(a>b && a>c)greatest=a;                  …

Read More

C Program to Check Leap Year

30 Jun,2020 suryad5Leave a comment

//leap year #include<stdio.h> void main() { int year; printf(“enter the year\n”); scanf(“%d”,&year); if(year%100==0) { if(year%400==0) printf(“the year is leap\n”); else …

Read More

Switch Case Statement

30 Jun,2020 suryad5Leave a comment

//use of case statement #include<stdio.h> void main() { int choice, a,b,result; printf(“Enter the choice\n1.Add\n2.Substract\n3.Multiply\n4.Division\n “); scanf(“%d”,&choice); printf(“enter the two numbers”); …

Read More

C Program to Convert Decimal Number to Binary Number

29 Jun,2020 suryad5Leave a comment

#include<stdio.h> void main() { int r,n, sum=0,i=1; printf(“enter the value of n”); scanf(“%d”,&n); while(n!=0) { r=n%2; sum=sum+r*i; n=n/2; i*=10; } …

Read More

C Program to Convert Binary Number into Decimal Number.

29 Jun,2020 suryad5Leave a comment

#include<stdio.h> #include<math.h> void main() { int n, sum=0, p=0,r,num, rem,check; printf(“enter the value of n\n”); scanf(“%d”,&n); num=n; while(num!=0)      …

Read More

Cosine Series ( cos(x)=1-x^2/2!+x^4/4!-x^6/6!+……………)

29 Jun,2020 suryad5Leave a comment

//c program to find the value of cosine series #include<stdio.h> #define pi 3.1416 void main() { int n,i; float x, …

Read More

Posts navigation

< Page 1 Page 2 Page 3 >

Recent Posts

  • write a C program to display the name of day on the basis of entered number 1 to 7. for example, 1 for sunday.
  • write a program to checks whether the number entered by user is exactly divisible by 5 but not by 11.
  • Write a C program to sort integer values in descending order
  • Concept of Pointer(Part-2)
  • C Program to swap two numbers showing call by reference.

Categories

  • C Programming
  • HSEB
  • Pointer
  • Programming Language
  • Uncategorized

Recent Comments

  • Ram Binay sharma on write a C program to display the name of day on the basis of entered number 1 to 7. for example, 1 for sunday.
  • Ram Binay sharma on write a C program to display the name of day on the basis of entered number 1 to 7. for example, 1 for sunday.
  • Manij on C Program to Dispaly 2-D Table

Archives

  • July 2020
  • June 2020

Search

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

©2026 SURYAOFFICIAL.