Posted by : Naveen's Blogs Thursday, 26 September 2013

this is a program to caliculate greatest number in two numbers

#include<stdio.h>
#include<conio.h>
void main()
{
 int a,b;
 clrscr();
 printf("enter values of a and b :");
 scanf("%d%D",&a,&b);
 if(a<b);
 {
 printf("b is greater");
 }
  else 
  printf("a is greater");
  getch();
}

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Popular Post

Blogger templates

Powered by Blogger.

- Copyright © C-Programming -Robotic- Powered by Blogger - Designed by NAVEEN KUMAR -

6